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

Psalms 140:13

Surely the righteous shall give thanks unto thy name: the upright shall dwell in thy presence.

Read in other translations