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

Psalms 37:39

But the salvation of the righteous is of the Lord: he is their strength in the time of trouble.

Read in other translations