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

Psalms 138:2

Thou knowest my down-sitting and mine up-rising: thou understandest my thoughts long before.

Read in other translations