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

2 Samuel 22:31

As for God, his way is perfect; the word of the Lord is tried: he is a buckler to all them that trust in him.

Read in other translations