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

Psalms 17:1

For the end, [a Psalm] of David the servant of the Lord; [the words] which he spoke to the Lord, [even] the words of this Song, in the day in which the Lord delivered him out of the hand of all his enemies, and out of the hand of Saul: and he said:

Read in other translations