Psalm 18:26 in the King James Version
With the pure thou wilt shew thyself pure; and with the froward thou wilt shew thyself froward.
Context
25 With the merciful you will show yourself merciful. With the perfect man, you will show yourself perfect.
26 With the pure, you will show yourself pure. With the crooked you will show yourself shrewd.
27 For you will save the afflicted people, but the arrogant eyes you will bring down.