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

Psalms 18:50

Great deliverance giveth he to his king; and sheweth mercy to his anointed, to David, and to his seed for evermore.

Read in other translations