Passage
With the merciful you will show yourself merciful. With the perfect man you will show yourself perfect.
With the merciful you will show yourself merciful. With the perfect man you will show yourself perfect.
2 Samuel 22:24 I was also perfect toward him. I kept myself from my iniquity.
2 Samuel 22:25 Therefore Yahweh has rewarded me according to my righteousness, According to my cleanness in his eyesight.
2 Samuel 22:26 With the merciful you will show yourself merciful. With the perfect man you will show yourself perfect.
2 Samuel 22:27 With the pure you will show yourself pure. With the crooked you will show yourself shrewd.
2 Samuel 22:28 You will save the afflicted people, But your eyes are on the haughty, that you may bring them down.
The verse centers on "merciful", "show", "yourself", and "perfect". It is saying that the verse draws attention to "merciful" and "show", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 25's "Therefore Yahweh has rewarded me according to..." into verse 27's "With the pure you will show yourself...", so "merciful" and "show" belong inside that flow. In 2 Samuel context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "merciful" and "show" with trust shaped by these words, not by a vague optimism outside the passage.