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

Psalms 17:19

They prevented me in the day of mine affliction: but the Lord was my stay against [them].

Read in other translations