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

Psalms 17:18

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

Read in other translations