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

Psalms 118:143

Afflictions and distresses found me: [but] thy commandments [were] my meditation.

Read in other translations