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

Psalms 138:3

Thou hast traced my path and my bed, and hast foreseen all my ways.

Read in other translations