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

Psalms 18:30

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

Read in other translations