with the purified you deal purely, and with the crooked you make yourself seem tortuous.
Let us observe, in this song of praise, I. How David adores God, and gives him the glory of his infinite perfections. There is none like him, nor any to be compared with him (Sa2 22:32): Who is God, save the Lord? All others that are adored as deities are counterfeits and pretenders. None is to be relied on but he. Who is a rock, save our God?
Commenting on 2 Samuel 22:2-51
He is the tower of salvation for his king: and showeth mercy to his anointed, unto David, and to his seed for evermore. See Gill on Psa 18:50. Next: 2 Samuel Chapter 23
With the pure thou wilt shew thyself pure; and with the froward thou wilt shew thyself unsavoury. (n) Their wickedness is cause that you seem to forget your usual mercy.