2 Samuel 22:26 in the King James Version
With the merciful thou wilt shew thyself merciful, and with the upright man thou wilt shew thyself upright.
Context
25 Therefore the LORD has rewarded me according to my righteousness, According to my cleanness in his eyesight.
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.