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

Psalms 40:9

I have preached righteousness in the great congregation: lo, I have not refrained my lips, O Lord, thou knowest.

Read in other translations