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

Psalms 40:1

I waited patiently for the Lord; and he inclined unto me, and heard my cry.

Read in other translations