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

2 Samuel 22:27

With the pure thou wilt shew thyself pure; and with the froward thou wilt shew thyself unsavoury.

Read in other translations