David's prayer of repentance after his affair with Bathsheba — walked through verse by verse.
Psalm 51 is a prayer of confession, traditionally attributed to David and dated to a specific, painful moment: after the prophet Nathan confronted him over his affair with Bathsheba and his role in arranging her husband Uriah's death (2 Samuel 11–12). The psalm's heading directly names that event.
It's the best known of the “penitential psalms” — psalms centered on confessing sin and asking for mercy — and has been used in Jewish and Christian worship as a model prayer of repentance for centuries.
Psalm 51, King James Version — read start to finish before the breakdown below.
Have mercy upon me, O God, according to thy lovingkindness: according unto the multitude of thy tender mercies blot out my transgressions.
Wash me throughly from mine iniquity, and cleanse me from my sin.
For I acknowledge my transgressions: and my sin is ever before me.
Against thee, thee only, have I sinned, and done this evil in thy sight: that thou mightest be justified when thou speakest, and be clear when thou judgest.
Behold, I was shapen in iniquity; and in sin did my mother conceive me.
Behold, thou desirest truth in the inward parts: and in the hidden part thou shalt make me to know wisdom.
Purge me with hyssop, and I shall be clean: wash me, and I shall be whiter than snow.
Make me to hear joy and gladness; that the bones which thou hast broken may rejoice.
Hide thy face from my sins, and blot out all mine iniquities.
Create in me a clean heart, O God; and renew a right spirit within me.
Cast me not away from thy presence; and take not thy holy spirit from me.
Restore unto me the joy of thy salvation; and uphold me with thy free spirit.
Then will I teach transgressors thy ways; and sinners shall be converted unto thee.
Deliver me from bloodguiltiness, O God, thou God of my salvation: and my tongue shall sing aloud of thy righteousness.
O Lord, open thou my lips; and my mouth shall shew forth thy praise.
For thou desirest not sacrifice; else would I give it: thou delightest not in burnt offering.
The sacrifices of God are a broken spirit: a broken and a contrite heart, O God, thou wilt not despise.
Do good in thy good pleasure unto Zion: build thou the walls of Jerusalem.
Then shalt thou be pleased with the sacrifices of righteousness, with burnt offering and whole burnt offering: then shall they offer bullocks upon thine altar. Psalm 51:1–19, King James Version
The same nineteen verses, grouped and explained in plain language.
"Have mercy upon me, O God, according to thy lovingkindness… For I acknowledge my transgressions: and my sin is ever before me. Against thee, thee only, have I sinned, and done this evil in thy sight."Psalm 51:1–4, King James Version
David opens by appealing entirely to God's character — “lovingkindness” and “tender mercies” — rather than any defense of himself. He names his sin directly and frames it, even though it deeply wronged Bathsheba and Uriah, as ultimately an offense against God.
"Behold, I was shapen in iniquity; and in sin did my mother conceive me. Behold, thou desirest truth in the inward parts."Psalm 51:5–6, King James Version
David traces the problem deeper than one bad decision — to a condition present since birth. This verse became a key text in later Christian discussions of human sinfulness, and it sets up his request in verse 6 for honesty at the deepest level, not just cleaned-up behavior.
"Purge me with hyssop, and I shall be clean: wash me, and I shall be whiter than snow… Hide thy face from my sins, and blot out all mine iniquities."Psalm 51:7–9, King James Version
Hyssop was a plant used in Old Testament purification rituals (Leviticus 14, Exodus 12). David borrows that ritual picture — being washed, made “whiter than snow” — to ask for an inward cleansing no ritual could actually provide on its own.
"Create in me a clean heart, O God; and renew a right spirit within me. Cast me not away from thy presence… Restore unto me the joy of thy salvation."Psalm 51:10–12, King James Version
The request shifts from pardon to transformation — David asks not just to be forgiven but to be changed, and pleads not to lose God's presence or Spirit, a plea that echoes his awareness of what happened to King Saul (1 Samuel 16:14).
"Then will I teach transgressors thy ways… The sacrifices of God are a broken spirit: a broken and a contrite heart, O God, thou wilt not despise."Psalm 51:13–17, King James Version
David promises that restoration will overflow into helping other sinners, and makes one of the psalm's most quoted claims: God isn't interested in ritual sacrifice offered without genuine sorrow — a humbled, honest heart matters more than the offering itself.
"Do good in thy good pleasure unto Zion: build thou the walls of Jerusalem. Then shalt thou be pleased with the sacrifices of righteousness."Psalm 51:18–19, King James Version
The closing verses widen the lens from David's personal sin to the wellbeing of Jerusalem as a whole — some scholars think these two verses were added later, during or after the Babylonian exile, to apply David's personal prayer to the nation's larger need for restoration.
Its unflinching honesty about sin, paired with confidence in God's mercy, has made it a template for confession across Jewish and Christian liturgy for thousands of years.
Unlike many psalms, its heading names the exact context — David's affair with Bathsheba and the death of her husband Uriah — making its plea for mercy concrete rather than abstract.
Verse 10 is among the most quoted lines from the psalm, often set to music, because it asks for inner change rather than just a clean record.