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

Psalms 39:3

And he brought me up out of a pit of misery, and from miry clay: and he set my feet on a rock, and ordered my goings aright.

Read in other translations