2 Samuel 22:27 in the World English Bible
With the pure you will show yourself pure. With the crooked you will show yourself shrewd.
Context
26 With the merciful thou wilt shew thyself merciful, and with the upright man thou wilt shew thyself upright.
27 With the pure thou wilt shew thyself pure; and with the froward thou wilt shew thyself unsavoury.
28 And the afflicted people thou wilt save: but thine eyes are upon the haughty, that thou mayest bring them down.