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

2 Samuel 22:2

And the song was thus: O Lord, my rock, and my fortress, and my deliverer,

Read in other translations