Skip to content
Translation
King James Version
I was also upright before him, and I kept myself from mine iniquity.
Ask
KJV (with Strong's)
I was also upright H8549 before him, and I kept H8104 myself from mine iniquity H5771.
Ask
Complete Jewish Bible
I was pure-hearted with him and kept myself from my sin.
Ask
Berean Standard Bible
And I have been blameless before Him and kept myself from iniquity.
Ask
American Standard Version
I was also perfect with him, And I kept myself from mine iniquity.
Ask
World English Bible Messianic
I was also blameless with him. I kept myself from my iniquity.
Ask
Geneva Bible (1599)
I was vpright also with him, and haue kept me from my wickednes.
Ask
Young's Literal Translation
And I am perfect with him, And I keep myself from mine iniquity.
Ask

Study This Verse

SUMMARY

Psalm 18:23 encapsulates King David's profound declaration of integrity and intentional righteousness before God, serving as a powerful testament to his sincere walk and active resistance to personal sin. Situated within a grand hymn of thanksgiving for divine deliverance from all his enemies, this verse underscores David's understanding that God's righteous judgment and miraculous intervention were, in part, a response to his consistent pursuit of a life aligned with divine will, not claiming sinless perfection but a genuine heart of obedience and a diligent effort to avoid his own specific moral failings.

CONTEXT

  • Literary Context: Psalm 18 is a magnificent psalm of thanksgiving and praise, attributed to David "in the day that the LORD delivered him from the hand of all his enemies, and from the hand of Saul." This psalm is also found, with minor variations, in 2 Samuel 22. The psalm opens with David's fervent declaration of love for God, his Rock and Deliverer, as seen in Psalm 18:1-3. The bulk of the psalm (verses 4-19) vividly describes God's dramatic and cosmic intervention on David's behalf, portraying Him as a divine warrior descending from heaven to rescue His servant. Verses 20-24, where our verse 23 resides, form a distinct section where David reflects on the reason for God's favor, asserting his own righteousness and integrity. This assertion is not a boast of sinless perfection but a declaration of his overall character and the general trajectory of his life, particularly in contrast to his adversaries. It sets up the theological principle that God deals justly with the righteous, rewarding those who walk in His ways.
  • Historical & Cultural Context: Composed likely after a significant period of conflict and persecution, possibly at a high point in David's reign, this psalm reflects the life of a king who faced relentless opposition from both external enemies and internal threats, most notably King Saul. In ancient Near Eastern kingship, a king's success and the prosperity of his kingdom were often seen as direct reflections of his piety and adherence to the divine covenant. David, as Israel's king, was expected to embody righteousness and justice. His declaration in Psalm 18:23 would have resonated deeply within a culture that understood divine favor as a response to human faithfulness. The concept of "iniquity" (Hebrew: ʿawon) carried not just the idea of sin but also the guilt and consequence associated with it, making David's active guarding against it a profound statement of covenant fidelity in a world where divine judgment was a tangible reality.
  • Key Themes: This verse powerfully contributes to several overarching themes within Psalm 18 and the broader biblical narrative. Firstly, it highlights the theme of Divine Justice and Retribution, where God is portrayed as one who "rewards me according to my righteousness" as declared in Psalm 18:20. David's integrity is presented as the human side of this divine equation. Secondly, it emphasizes Personal Integrity and Uprightness, portraying David as one who genuinely sought to walk in God's ways, distinguishing himself from those who pursued wickedness. This theme is central to the wisdom literature, which often contrasts the path of the righteous with that of the wicked, as seen in Psalm 1:6. Thirdly, the verse speaks to the Active Resistance to Sin, demonstrating that true faithfulness involves a conscious and deliberate effort to turn away from one's own sinful inclinations, not merely a passive avoidance. This proactive stance against "mine iniquity" foreshadows later biblical calls to self-control and spiritual discipline.

EXPOSITION AND ANALYSIS

Key Word Analysis

  • Upright (Hebrew, tâmîym', H8549): From the root meaning "to be complete" or "finished," this word signifies "entire," "without blemish," "perfect," or "whole." When applied to human conduct, as here, it denotes moral rectitude, integrity, and a life that aligns with God's standards. It implies sincerity and a consistent, unswerving walk in the path of righteousness, free from deviation or crookedness. David's assertion of being "upright before him" indicates a sincere and genuine desire to please God, not merely an outward show, reflecting a wholeness of devotion.
  • Kept (Hebrew, shâmar', H8104): This primitive root properly means "to hedge about (as with thorns)," hence "to guard" or "protect." More generally, it means "to attend to," "observe," "preserve," or "take heed." In this context, it describes an active, vigilant, and deliberate effort to guard oneself. David didn't passively avoid sin; he actively "kept himself," implying a conscious discipline and watchfulness over his own conduct and heart, like a guard protecting a valuable possession.
  • Iniquity (Hebrew, ʻâvôn', H5771): This term carries the sense of "perversity," "moral evil," "fault," "guilt," or "punishment for sin." It often refers to a twisted or distorted action, a moral deviation that results in guilt. The possessive "mine" (or "my") before "iniquity" is crucial. It points to David's personal sins, his own specific weaknesses, temptations, or sinful tendencies that he actively recognized and strove to avoid. It suggests a deep self-awareness and a deliberate struggle against his own propensity to sin, rather than a general statement about human fallenness.

Verse Breakdown

  • "I was also upright before him": This clause declares David's consistent moral integrity and sincerity in his relationship with God. The phrase "before him" emphasizes that his uprightness was not merely for human observation but was genuinely directed towards God, whose gaze penetrates the heart and discerns true motives. It speaks to the authenticity of his devotion and his earnest effort to live in accordance with God's will, establishing a foundation for his claim of divine favor. This "uprightness" signifies a life characterized by integrity and a wholehearted commitment to God's ways.
  • "and I kept myself from mine iniquity": This second clause specifies the active nature of David's uprightness. It highlights a conscious, deliberate, and sustained effort to guard himself against his own specific sinful inclinations or patterns. This is not a passive state but an active vigilance and self-discipline. The emphasis on "mine iniquity" underscores a personal responsibility and an awareness of his own particular vulnerabilities to sin, from which he diligently sought to refrain. This demonstrates a proactive pursuit of holiness, acknowledging personal areas of struggle and actively resisting them.

Literary Devices

Psalm 18:23 employs several literary devices to convey its powerful message. The most prominent is Declaration, as David directly asserts his moral standing before God, reinforcing his righteous character. This declaration functions as a Justification, explaining why God's deliverance was a righteous act. The use of Personal Pronouns ("I," "myself," "mine") creates an intimate and confessional tone, emphasizing the deeply personal nature of David's walk with God and his active role in maintaining his integrity. There is also an element of Contrast, implicitly setting David's uprightness against the wickedness of his enemies, which God has judged. Furthermore, the two clauses exhibit a form of Synthetic Parallelism, where the second clause ("I kept myself from mine iniquity") elaborates on and provides a specific example of the first clause ("I was also upright before him"), demonstrating the practical outworking of his inner integrity and sincere devotion.

THEOLOGICAL AND THEMATIC CONNECTIONS

This verse articulates a fundamental biblical principle: God responds to genuine righteousness and faithfulness. While salvation is always by grace, the Scriptures consistently affirm that God's covenant blessings and interventions are often tied to human obedience and integrity. David's declaration is not a claim to sinless perfection, which would contradict other biblical accounts of his life (e.g., his sin with Bathsheba in 2 Samuel 11). Rather, it speaks to the overall trajectory of his life, his sincere heart, and his consistent effort to walk in God's ways, especially in contrast to those who willfully rebelled against God. This concept of God rewarding the righteous is woven throughout the Old Testament, demonstrating His justice and His commitment to His covenant people who strive to live in accordance with His commands.

REFLECTION AND APPLICATION

Psalm 18:23 offers a profound challenge and encouragement for believers today. It calls us to cultivate a life marked by genuine integrity, not merely outward conformity or a superficial adherence to religious practices. David's assertion of being "upright before him" reminds us that our walk of faith is primarily an orientation towards God, seeking His approval above all else. This requires an honest self-assessment, acknowledging our own specific "iniquities"—the particular temptations, weaknesses, or sinful patterns that are unique to us. Like David, we are called to actively "keep ourselves" from these, not passively yielding to them. This active resistance demands vigilance, self-control, and a constant reliance on the Holy Spirit's power. It's a daily commitment to guard our hearts and minds, knowing that true holiness begins within. While we acknowledge our inherent sinfulness and rely solely on Christ's righteousness for salvation, this verse inspires us to strive for a life that honors God, demonstrating our love for Him through diligent obedience and a sincere desire to walk in His ways, knowing that He sees and rewards the heart that genuinely seeks Him.

Questions for Reflection

  • In what specific areas of your life do you feel called to be more "upright before him," ensuring your actions align with your faith and not just outward appearance?
  • What are your personal "iniquities" or recurring temptations that you need to actively "keep yourself from" through vigilance and spiritual discipline?
  • How does understanding David's struggle and triumph in this psalm encourage your own pursuit of holiness and active resistance to sin?
  • What practical steps can you take to cultivate a more proactive and vigilant approach to guarding your heart and actions against sin, relying on God's strength?

FAQ

Does David's claim of uprightness contradict his known sins, like with Bathsheba?

Answer: No, David's claim in Psalm 18:23 does not contradict his known sins, such as his adultery with Bathsheba (2 Samuel 11) or his census. Rather, it speaks to the general trajectory and sincere intent of his life. The Hebrew concept of "uprightness" (tâmîym) refers to a consistent moral integrity and a genuine desire to walk in God's ways, not sinless perfection. David was a man whose heart was generally inclined towards God, and when he sinned, he demonstrated profound repentance, as seen in Psalm 51. His declaration here emphasizes his overall faithfulness and diligent effort to avoid known sin, particularly in contrast to the wickedness of his enemies, and it highlights God's righteous response to a heart that genuinely seeks Him, despite its flaws and occasional failures.

CHRIST-CENTERED FULFILLMENT

While David's declaration of uprightness and resistance to "mine iniquity" speaks to a genuine pursuit of holiness, it ultimately points beyond himself to the perfect Upright One, Jesus Christ. David's struggle against his own sin highlights the human inability to achieve perfect righteousness, even for the "man after God's own heart." Jesus, however, is the only one who could truly declare, "I was also upright before him, and I kept myself from mine iniquity," for He "knew no sin" (2 Corinthians 5:21) and was "in all points tempted like as we are, yet without sin" (Hebrews 4:15). His life was one of absolute, unwavering obedience to the Father's will, perfectly fulfilling all righteousness (Matthew 3:15). Therefore, our hope for divine favor and deliverance does not rest on our imperfect uprightness, but on the flawless righteousness of Christ, which is imputed to us by faith (Romans 3:22). He is our ultimate Deliverer, who not only rescues us from our enemies but also from the power and penalty of our own iniquity, having become "the Lamb of God, who takes away the sin of the world!" (John 1:29). In Him, we are made righteous, and through His Spirit, we are empowered to genuinely strive for uprightness, mirroring His perfect example.

Copy as

Commentary on Psalms 18 verses 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, Co2 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 righteousness. 1. His deliverances cleared his innocency before men, and acquitted him from those crimes which he was falsely accused of. This he calls rewarding him according to his righteousness (Psa 18:20, Psa 18:24), that is, determining the controversy between him and his enemies, according to the justice of his cause and the cleanness of his hands, from that sedition, treason, and rebellion, with which he was charged. He had often appealed to God concerning his innocency; and now God had given judgment upon the appeal (as he always will) according to equity. 2. They confirmed the testimony of his own conscience for him, which he here reviews with a great deal of pleasure, Psa 18:21-23. His own heart knows, and is ready to attest it, (1.) That he had kept firmly to his duty, and had not departed, not wickedly, not wilfully departed, from his God. Those that forsake the ways of the Lord do, in effect, depart from their God, and it is a wicked thing to do so. But though we are conscious to ourselves of many a stumble, and many a false step taken, yet if we recover ourselves by repentance, and go on in the way of our duty, it shall not be construed into a departure, for it is not a wicked departure, from our God. (2.) That he had kept his eye upon the rule of God's commands (Psa 18:22): "All his judgments were before me; and I had a respect to them all, despised none as little, disliked none as hard, but made it my care and business to conform to them all. His statutes I did not put away from me, out of my sight, out of my mind, but kept my eye always upon them, and did not as those who, because they would quit the ways of the Lord, desire not the knowledge of those ways." (3.) That he had kept himself from his iniquity, and thereby had approved himself upright before God. Constant care to abstain from that sin, whatever it be, which most easily besets us, and to mortify the habit of it, will be a good evidence for us that we are upright before God. As David's deliverances cleared his integrity, so did the exaltation of Christ clear his, and for ever roll away the reproach that was cast upon him; and therefore he is said to be justified in the Spirit, Ti1 3:16.

II. He takes occasion thence to lay down the rules of God's government and judgment, that we may know not only what God expects from us, but what we may expect from him, Psa 18:25, Psa 18:26. 1. Those that show mercy to others (even they need mercy, and cannot depend upon the merit, no, not of their works of mercy) shall find mercy with God, Mat 5:7. 2. Those that are faithful to their covenants with God, and the relations wherein they stand to him, shall find him all that to them which he has promised to be. Wherever God finds an upright man, he will be found an upright God. 3. Those that serve God with a pure conscience shall find that the words of the Lord are pure words, very sure to be depended on and very sweet to be delight in. 4. Those that resist God, and walk contrary to him, shall find that he will resist them, and walk contrary to them, Lev 26:21, Lev 26:24.

III. Hence he speaks comfort to the humble ("Thou wilt save the afflicted people, that are wronged and bear it patiently"), terror to the proud ("Thou wilt bring down high looks, that aim high, and look with scorn and disdain upon the poor and pious"), and encouragement to himself - "Thou wilt light my candle, that is, thou wilt revive and comfort my sorrowful spirit, and not leave me melancholy; thou wilt recover me out of my troubles and restore me to peace and prosperity; thou wilt make my honour bright, which is now eclipsed; thou wilt guide my way, and make it plain before me, that I may avoid the snares laid for me; thou wilt light my candle to work by, and give me an opportunity of serving thee and the interests of thy kingdom among men."

Let those that walk in darkness, and labour under many discouragements in singing these verses, encourage themselves that God himself will be a light to them.

Matthew Henry (1662–1714) — Commentary on the Whole Bible. This section covers verses 20–28. Public domain.
Copy as
Augustine of HippoAD 430
Exposition on Psalm 18
"And I shall be undefiled with Him, and I shall keep Myself from Mine iniquity" [Psalm 18:23].
Arnobius the YoungerAD 460
COMMENTARY ON PSALM 18
I will be blameless with him, with that very one who, himself blameless, suffered on the cross for our iniquities.
Source: Quotations drawn from early Church Fathers and historical Christian theologians (AD 100–1500). Some quotes address the surrounding passage context rather than this verse alone.
Copy as

Continue studying Psalms 18:23 across the web’s major study libraries — every link below opens this exact verse, chapter, or book on the destination site.

TrulyRandomVerse is not affiliated with these sites and doesn’t control their content. They’re linked because they’re genuinely useful.