Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
KJV

Psalms 49:18

Though while he lived he blessed his soul: and men will praise thee, when thou doest well to thyself.

Read in other translations