The epilogue of 2 Samuel reaches its center in two poetic texts — a long song of deliverance and a shorter poem of David's last words — placed symmetrically at the heart of the final section like two pillars. They frame everything the narrative has said about David's reign: here is the man in his own voice, interpreting his own life in terms of what God has done and what God has promised. After the grief of Absalom, after the complications of the return, after the famine and the Gibeonites and the aging king who can no longer fight his own battles — here is David declaring who he understands himself to be.
Song, Last Words, and Census Judgment
Main Highlights
- David's song of deliverance names God as rock, fortress, deliverer, shield, and refuge — each word carrying the weight of a specific survival God made possible.
- David's last words rest not on his own righteousness but entirely on the everlasting covenant: God's promise outlasts every failure within it.
- David numbers the fighting men of Israel and is immediately conscience-stricken; seventy thousand people die in the resulting plague.
- David refuses to offer Araunah's free threshing floor to God — "I will not offer burnt offerings that cost me nothing" — and buys the site that becomes the temple's foundation.
The Song of Deliverance
The song in 2 Samuel 22 is nearly identical to Psalm 18. It was written "on the day when the LORD delivered him from the hand of all his enemies, and from the hand of Saul" — a title that reaches back across the entire history of David's flight and survival. David speaks as a man who has come through.
"The LORD is my rock and my fortress and my deliverer, my God, my rock, in whom I take refuge, my shield, and the horn of my salvation, my stronghold and my refuge, my savior; you save me from violence." — 2 Samuel 22:2–3 (ESV)
The accumulation of images — rock, fortress, deliverer, refuge, shield, horn, stronghold — is not redundancy. Each word reaches for a different aspect of what God has been in different moments: the immovable ground under his feet when pursued, the fortification around him when trapped, the One who moved first when he cried out. David has not survived because of his own skill and judgment alone. He has survived because the God who called him from Bethlehem did not let the wilderness or the caves or Saul's javelin or the revolt of his own son end what God had promised. What strikes us about this song is that it is interpretation, not decoration. He names specifically who God has been — filling each word with the full weight of his life's experience. The song is the theological memoir of a man who has survived what should have destroyed him.
The song narrates the dramatic divine intervention in terms borrowed from theophany tradition — the earth shaking, smoke from God's nostrils, darkness under His feet, fire consuming, the LORD riding on a cherub, thundering from heaven. The imagery is cosmic because David's survival was, from the covenant's perspective, a matter of cosmic stakes. The anointed king's preservation was the preservation of God's promise about the house that would endure forever.
The song ends with the covenant itself:
"Great salvation he brings to his king, and shows steadfast love to his anointed, to David and his offspring forever." — 2 Samuel 22:51 (ESV)
David's Last Words
The second poem is introduced as "the last words of David" — not his final chronological speech but his final testament, his settled conviction about what his reign has been and what it points toward:
"The Spirit of the LORD speaks by me; his word is on my tongue. The God of Israel has spoken; the Rock of Israel has said to me: When one rules justly over men, ruling in the fear of God, he dawns on them like the morning light, like the sun shining forth on a cloudless morning, like rain that makes grass sprout from the earth." — 2 Samuel 23:2–4 (ESV)
David has been that kind of ruler — imperfectly, with catastrophic failures along the way — and he knows it. He also knows he has not always been that ruler. The poem continues:
"For does not my house stand so with God? For he has made with me an everlasting covenant, ordered in all things and secure. For will he not cause to prosper all my help and my desire?" — 2 Samuel 23:5 (ESV)
The everlasting covenant — the promise of 2 Samuel 7 — is what David rests on. Not his own righteousness, not the consistency of his obedience, but the promise God made that will outlast him. The catalog of his mighty men that follows — the thirty, the three, the men who broke through the Philistine lines to bring David a drink of water from the well of Bethlehem — is not mere honorific roster-keeping. It is the recognition that what God did through David's reign, He did through these specific men in these specific acts of courage and loyalty. The list is a form of gratitude.
The Census and Its Judgment
The final episode is the strangest and most theologically complex in 2 Samuel. God's anger is kindled against Israel — for reasons the text does not specify — and He incites David against Israel, saying "Go, number Israel and Judah." — 2 Samuel 24:1 (ESV). David commands Joab and his commanders to go through all the tribes and number the people. Joab asks why David wants to do this — is this not a cause of guilt for Israel? David's word prevails and Joab goes. They number 800,000 valiant men who draw the sword in Israel and 500,000 in Judah.
After the census is done, David's heart strikes him — he is conscience-stricken — and he confesses to God: "I have sinned greatly in what I have done. But now, O LORD, please take away the iniquity of your servant, for I have done very foolishly." — 2 Samuel 24:10 (ESV). God offers David a choice through the prophet Gad: three years of famine, three months of fleeing before enemies, or three days of pestilence. David says he will fall into the hand of the LORD, for His mercy is great, but not into the hand of man. God sends a pestilence. Seventy thousand people die.
The precise nature of David's sin in ordering the census has been debated across centuries of interpretation. The text seems to point toward a king numbering his military strength as though it were the source of his power — the same temptation toward trusting in the size of armies rather than in the LORD who gives victory — the same error the deuteronomic law warned kings against (Deuteronomy 17:16–17). Joab's own discomfort with the order supports this reading. Whatever its precise character, the sin is real, the judgment falls, and David intercedes:
"Behold, I have sinned, and I have done wickedly. But these sheep, what have they done? Please let your hand be against me and against my father's house." — 2 Samuel 24:17 (ESV)
The king who once sent Uriah to die to cover his own sin now asks God to let the judgment fall on himself rather than on the people. The difference is the measure of his formation. He is not the man of 2 Samuel 11. The pestilence stops. We find David's intercession here to be his clearest act of royal self-sacrifice — the clearest sign of how much he has changed since the Bathsheba chapters. He does not calculate consequences or reach for survival. He simply says: let it fall on me. That is a man who has been genuinely broken and genuinely remade. The census sin is about where David places his trust — numbering military strength as the source of security is the same error Saul made in different form. But the response to being confronted with it is entirely different from Saul's response. David goes immediately to God.
The Altar at Araunah's Threshing Floor
The angel of the LORD is standing at the threshing floor of Araunah the Jebusite when David is commanded to go up and raise an altar there. David comes to Araunah and explains. Araunah offers to give the king everything — the threshing floor, the oxen for the burnt offering, the threshing sledges and yokes of oxen for wood. The king shall take what seems good to him; he says: "The LORD your God accept you." — 2 Samuel 24:23 (ESV).
David refuses:
"No, but I will buy it from you for a price. I will not offer burnt offerings to the LORD my God that cost me nothing." — 2 Samuel 24:24 (ESV)
He buys the threshing floor and the oxen for fifty shekels of silver. He builds an altar and offers burnt offerings and peace offerings. The LORD responds to the plea for the land and the plague is restrained from Israel.
The threshing floor of Araunah is the site Solomon will choose for the temple. First Chronicles 3:1 and 2 Chronicles 3:1 identify the place: Moriah, where Abraham brought Isaac. The altar David builds here, at the intersection of judgment and mercy, on the site already freighted with covenant history, becomes the foundation for the house his son will build and the worship that will define Israel's life for centuries.
Robert Alter observes that 2 Samuel closes not with a political resolution or a military triumph but with a king who insists on paying full price for what he gives to God. Worship that costs nothing communicates nothing about the worth of the One being worshiped. The book that began with the desperate prayer of Hannah, who gave her only son back to God, ends with a king who will not offer what costs him nothing. Both gestures are the same conviction: what is given to God must be real.
The closing image of 2 Samuel stays with us: a broken king, not a triumphant one, buying a piece of land at full price in the middle of a plague and building an altar on it. "I will not offer burnt offerings to the LORD my God that cost me nothing." That line feels like a summary of David's entire formation. The man who once took what belonged to someone else — Uriah's wife, Uriah's life — is now the man who insists on giving his own. The arc from 2 Samuel 11 to 2 Samuel 24 is the arc of a man being genuinely remade.
The census sin also stays with us. We notice that the text does not resolve the theological tension cleanly — God incites, David acts, seventy thousand people die. We don't have a tidy answer for that. What we hold onto is what David does when he is confronted with his guilt: he runs toward God, not away. He chooses to fall into God's hands rather than man's. He stands between his people and the judgment and asks to absorb it. That is the David the whole book has been building toward.
Last updated: March 3, 2026.
Scripture quotations are from the ESV® Bible (The Holy Bible, English Standard Version®), © 2001 by Crossway, a publishing ministry of Good News Publishers.