2 Samuel 22:27 in the King James Version
With the pure thou wilt shew thyself pure; and with the froward thou wilt shew thyself unsavoury.
Context
26 With the merciful you will show yourself merciful. With the perfect man you will show yourself perfect.
27 With the pure you will show yourself pure. With the crooked you will show yourself shrewd.
28 You will save the afflicted people, but your eyes are on the arrogant, that you may bring them down.