Passage
And Jehovah hath recompensed me according to my righteousness, according to the cleanness of my hands in his sight.
And Jehovah hath recompensed me according to my righteousness, according to the cleanness of my hands in his sight.
Psalms 18:22 For all his ordinances were before me, and I did not put away his statutes from me;
Psalms 18:23 And I was upright with him, and kept myself from mine iniquity.
Psalms 18:24 And Jehovah hath recompensed me according to my righteousness, according to the cleanness of my hands in his sight.
Psalms 18:25 With the gracious thou dost shew thyself gracious; with the upright man thou dost shew thyself upright;
Psalms 18:26 With the pure thou dost shew thyself pure; and with the perverse thou dost shew thyself contrary.
The verse centers on "jehovah", "hath", "recompensed", "righteousness", "cleanness", "hands", and "sight". It is saying that the verse draws attention to "jehovah" and "hath", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 23's "And I was upright with him and..." into verse 25's "With the gracious thou dost shew thyself...", so "jehovah" and "hath" belong inside that flow. In Psalms context, the local focus is worship, trust, the LORD's kingship, and covenant mercy.
A plain takeaway is to answer the verse's own emphasis on "jehovah" and "hath" with trust shaped by these words, not by a vague optimism outside the passage.