2 Samuel 22:24
I was also upright before him, and have kept myself from mine iniquity.
2 Samuel 22:24 (KJV)
Context
2 Samuel 22 contains a song of David, which he sang to the Lord on the day the Lord delivered him from the hand of all his enemies and from the hand of Saul. This song expresses David’s gratitude and praise to God for His faithfulness and deliverance. It is also found in Psalm 18, with some minor variations.
Meaning
In 2 Samuel 22:24, David declares that he was upright before God. The term “upright” refers to moral integrity, righteousness, and being blameless in the sight of God. This claim must be understood alongside David’s acknowledged moral failings, such as his affair with Bathsheba and the subsequent death of Uriah. David does not mean that he never sinned, but that he sincerely pursued obedience to God’s commands. His uprightness was not self-righteousness; it was a life lived in relationship with God, marked by a genuine desire to follow Him.
The latter part of the verse says, “and have kept myself from mine iniquity.” Here, David speaks of his personal responsibility in avoiding sin and turning away from wrongdoing. He actively resisted temptations and stayed away from particular sins, though this does not imply a sinless life. The verse teaches that a life of integrity before God involves both a positive standing (uprightness) and a negative aspect (keeping from iniquity). Both are necessary: one cannot claim to be upright while ignoring the need to flee from sin.
Biblical connections
This verse is part of a larger passage where David reflects on God’s recompense according to righteousness (2 Samuel 22:21-25). The parallel in Psalm 18:23 confirms the same declaration. The context of deliverance shows that David’s song is a response to God’s faithfulness, and his claim to uprightness is part of his testimony of God’s dealings with him. The surrounding verses explain that God rewards the upright and shows mercy to the merciful, which frames David’s statement as a recognition of God’s just character.
Application
David’s statement reminds us of the importance of living an upright life before God. We should strive to align our actions, thoughts, and attitudes with God’s moral standards. While none of us are perfect, we should aim to align our actions with God’s moral standards, relying on His grace and strength. This is not a call to self-righteousness but to a humble pursuit of holiness, knowing that our standing before God is ultimately based on His mercy.
David’s acknowledgment of keeping himself from his iniquity emphasizes the role of personal responsibility in avoiding sin. We are called to actively resist temptation, making choices that honor God and promote righteousness. We are called to actively choose what honours God, even as we acknowledge our ongoing need for His forgiveness and guidance. This means being watchful over our own hearts and habits, not excusing sin but confessing it and turning from it.
David’s song in 2 Samuel 22 is a testimony of God’s deliverance. In the broader context, he acknowledges God’s faithfulness in protecting and rescuing him. We can take comfort in knowing that God is our ultimate deliverer and strength, and we can trust in Him during challenging times. Our own efforts at uprightness are not the foundation of our hope; God’s faithful character is.
Reflection
In summary, 2 Samuel 22:24 reflects David’s recognition of his upright living before God and his commitment to avoiding sin. As we apply this verse to our lives, we are encouraged to pursue righteousness, take personal responsibility in avoiding sin, and trust in God’s deliverance. The verse calls us to examine our own walk, relying on God’s grace to live with integrity.

