Commentary Critical and Explanatory
2 Samuel 22:24
I was also upright before him, and have kept myself from mine iniquity.
I was also upright before him. In private, as well as in public, in the wildest and most sequestered solitude, as well as in the populous city, it was my reigning desire, my aim and endeavour, to walk so as to please God.
And have kept myself from mine iniquity - i:e., either from the influence of inherent corruption, that it might not acquire ascendancy over my heart, or drive me into acts of open and deliberate wickedness in my conduct; or, from perpetrating the iniquity to which natural feeling and the force of circumstances tended so powerfully to stimulate me as a man, a soldier, and a destined monarch-namely, of killing Saul, and so taking just revenge on this malignant and implacable enemy, as well as freeing myself from a life of constant perils and painful necessities (see the note at 2 Samuel 1:16).