John Gills Exposition of the Bible Commentary - Psalms 18:23
I was also upright before him ,.... In heart and conversation, being sincere and faithful; so David was in the sight of God; but this is much more true of Christ, in whom there was no unrighteousness nor guile, neither in his heart, nor in his lips; he was of perfect integrity, and faithful in all things to him that appointed him; and I kept myself from mine iniquity ; which some interpret of original sin, in which David was born, which dwelt in him, and prompted him to sin; but rather... read more
Matthew Henry's Complete Commentary - Psalms 18:20-28
Here, I. David reflects with comfort upon his own integrity, and rejoices in the testimony of his conscience that he had had his conversation in godly sincerity and not with fleshly wisdom, 2 Cor. 1:12. His deliverances were an evidence of this, and this was the great comfort of his deliverances. His enemies had misrepresented him, and perhaps, when his troubles continued long, he began to suspect himself; but, when God visibly took his part, he had both the credit and the comfort of his... read more