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

Psalms 40:13

But thou didst help me because of [mine] innocence, and hast established me before thee for ever.

Read in other translations