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

Psalms 118:71

[It is] good for me that thou hast afflicted me; that I might learn thine ordinances.

Read in other translations