Passage
With the kind Thou shewest Thyself kind, With the perfect man Thou shewest Thyself perfect,
With the kind Thou shewest Thyself kind, With the perfect man Thou shewest Thyself perfect,
2 Samuel 22:24 And I am perfect before Him, And I keep myself from mine iniquity.
2 Samuel 22:25 And Jehovah returneth to me, According to my righteousness, According to my cleanness before His eyes.
2 Samuel 22:26 With the kind Thou shewest Thyself kind, With the perfect man Thou shewest Thyself perfect,
2 Samuel 22:27 With the pure Thou shewest Thyself pure, And with the perverse Thou shewest Thyself a wrestler.
2 Samuel 22:28 And the poor people Thou dost save, And Thine eyes on the high causest to fall.
The verse centers on "kind", "thou", "shewest", "thyself", and "perfect". It is saying that the verse draws attention to "kind" and "thou", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 25's "And Jehovah returneth to me According to..." into verse 27's "With the pure Thou shewest Thyself pure...", so "kind" and "thou" 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 "kind" and "thou" with trust shaped by these words, not by a vague optimism outside the passage.