Writers of the Bible

David

c. 1040–970 BC · Bethlehem shepherd boy · giant-slayer · fugitive poet · shepherd-king

Hebrew דָּוִד (Dawid) — "beloved"

Israel's greatest king left no monument — he left a hymnal: a whole life turned into prayer in real time, from cave floor to throne room to the wreckage of his own sin.

The Books They Wrote (1)

PsalmsTraditional attribution

Psalms is not one man's book but Israel's hymnal, gathered over centuries into five smaller "books." Of its 150 psalms, 73 bear David's name in their ancient superscriptions; others are credited to Asaph (12), the sons of Korah (11), Solomon (2), Moses (Psalm 90), Heman and Ethan (one each), and about fifty are anonymous. David is nonetheless the collection's fountainhead — its earliest master and tone-setter, the king who organized Israel's temple music, and the man Scripture itself calls "the sweet psalmist of Israel" (2 Samuel 23:1).

Life Story

Anointed among the sheep

David was the son nobody sent for. When Samuel arrived in Bethlehem with a horn of oil, saying God had chosen a king from among Jesse's sons, seven brothers passed before the prophet — tall, soldierly, plausible — and God refused each one: "People look at the outward appearance, but the LORD looks at the heart" (1 Samuel 16:7). Only then did anyone think to fetch the eighth and youngest from the pasture. The oil ran down over a boy who smelled of the flock, "and from that day on the Spirit of the LORD came powerfully upon David." Then everyone went home, and the secretly anointed king went back to his sheep. Those pasture years were a poet's apprenticeship. Alone with the flock, David fought off lion and bear, mastered the sling, mastered the harp — and watched night skies that would surface decades later in his songs: "When I consider your heavens, the work of your fingers, the moon and the stars, which you have set in place…" (Psalm 8:3). The gift showed before the crown did. When King Saul, tormented in spirit, needed music, a servant recommended "a son of Jesse of Bethlehem who knows how to play the lyre," and the shepherd was summoned to court, where his playing brought relief to a breaking king (1 Samuel 16:23). Israel's future psalmist was already doing his life's truest work.

The giant and the spear on the wall

The Valley of Elah had gone silent for forty days except for one voice — Goliath of Gath, the Philistine champion, daring Israel to send out a man. David arrived with bread and cheese for his soldier brothers, heard the taunt, and asked the question no one else was asking: "Who is this uncircumcised Philistine, that he should defy the armies of the living God?" (1 Samuel 17:26). He refused Saul's armor and walked down with a staff, a sling, and five smooth stones from the stream: "You come against me with sword and spear and javelin, but I come against you in the name of the LORD Almighty" (17:45). One stone later the giant lay face down, and Israel had glimpsed its next king — a poet who fought, a fighter who sang; in David the two were never separate. Fame turned lethal almost at once. The women's victory song — "Saul has slain his thousands, and David his tens of thousands" — lodged in Saul's mind like a splinter, and the king who had loved David's harp began hurling his spear at the harpist. David married Saul's daughter Michal, was bound to Saul's son Jonathan in covenant friendship, and succeeded in everything he was given — which only fed the jealousy. Twice the spear flew while David played. The palace had become more dangerous than any battlefield, and one night, warned by Michal, David went out through a window and into roughly a decade of running.

Psalms with a price on his head

Here the hymnal begins to read like a diary, because many psalm superscriptions pin a song to a moment on the run. The night Saul's men watched his house to kill him, David wrote Psalm 59: "But I will sing of your strength, in the morning I will sing of your love." Cornered in Gath, he escaped only by feigning madness before its king — scratching on the gate, saliva running down his beard — and out of that humiliation came Psalm 34, a meticulously crafted alphabet-poem: "Taste and see that the LORD is good." Hiding in the cave, he wrote Psalm 57, "I will take refuge in the shadow of your wings until the disaster has passed," and Psalm 142, the prayer of a man at the very bottom: "no one is concerned for me… no one cares for my life." The fugitive years hardened him into a commander and refined him into Israel's deepest voice of trust. Four hundred desperate men — the distressed, the indebted, the bitter — gathered to him at Adullam, and he shaped them into a disciplined band. Twice he held Saul's life at knife's edge, in the cave at En Gedi and in the sleeping camp, and twice refused to touch the LORD's anointed. He was learning the very thing his psalms would teach the world: lay the case before God, and leave the verdict with him. Israel's prayer book smells of cave smoke — its greatest songs of refuge were written by a man with a price on his head.

The crown, the ark, and the catastrophe

When Saul fell at Gilboa, David did not celebrate. He tore his clothes and composed a lament — "How the mighty have fallen!" — and ordered Judah to learn it. Crowned at Hebron over Judah, then over all Israel, he took the fortress of Zion and made Jerusalem his capital, and brought the ark up to the city with trumpets and shouting, dancing before the LORD with all his might, gladly undignified. When he proposed to build God a house, God answered through Nathan with something greater: it was God who would build David a house — a dynasty, a throne established forever (2 Samuel 7). David went in, sat before the LORD, and prayed like the poet he was: "Who am I, Sovereign LORD, and what is my family, that you have brought me this far?" Then came the spring when kings go off to war and David stayed in Jerusalem. From his roof he saw Bathsheba bathing; he sent for her; and when she conceived, he arranged for her husband Uriah — one of his own honored soldiers — to die in battle. For the better part of a year he brazened it out, and later described that silence from the inside: "When I kept silent, my bones wasted away through my groaning all day long" (Psalm 32:3). Then Nathan told him a story about a rich man and a poor man's one little lamb, and drove it home: "You are the man!" David's whole defense collapsed into five words: "I have sinned against the LORD." Out of the wreckage he wrote Psalm 51 — and its superscription preserves the astonishing part: he handed it "to the director of music." The king published his own confession for the congregation to sing: "Create in me a pure heart, O God." The forgiveness was real, and so were the consequences: the child died, and the sword never left his house.

Absalom, the last words, and the long echo

The sword came through his own sons. Absalom — beautiful, bitter — stole the hearts of Israel and raised a rebellion, and the old king fled his own capital weeping, barefoot, up the Mount of Olives. Yet the superscription of Psalm 3 reads, "A psalm of David. When he fled from his son Absalom," and inside it the hunted father somehow sleeps: "I lie down and sleep; I wake again, because the LORD sustains me." The revolt ended with Absalom dead in a forest and David undone above the gateway: "O my son Absalom! If only I had died instead of you!" In his final years the warrior turned into an architect of praise: he bought the threshing floor where the temple would one day stand, stockpiled its gold and stone and cedar, and organized four thousand temple musicians with their instruments (1 Chronicles 23–25) — a king making song into an institution. Scripture preserves "the last words of David" as a poem, and in it the old writer accounted for his life's whole output in a single line: "The Spirit of the LORD spoke through me; his word was on my tongue" (2 Samuel 23:2). After forty years' reign — seven in Hebron, thirty-three in Jerusalem — he charged Solomon to walk in God's ways, "and was buried in the City of David"; a thousand years later Peter could still point to his tomb in Jerusalem (Acts 2:29). His empire eventually tore in two; his palace is dust; the hymnal outlived them both. "David… served God's purpose in his own generation" is the New Testament's spare epitaph for him (Acts 13:36) — and three thousand years on, in every language on earth, the people of God still pray in his words.

Key Verse · Psalm 23:1

The LORD is my shepherd, I lack nothing.

Pointing to Christ

"Messiah" means "the Anointed One" — and the anointing in question is David's: God swore that David's throne would be established forever (2 Samuel 7:16), which is why the New Testament opens by calling Jesus "the Messiah the son of David" (Matthew 1:1), and why blind men shouting "Son of David, have mercy on me!" were making a royal claim. Born in Bethlehem, David's town, Jesus is the shepherd-king whom David's whole life sketched in advance: the overlooked one anointed by the Spirit, the champion who conquers not with sword and spear but in the name of the LORD, the sufferer who prayed David's own psalms from the cross — "My God, my God, why have you forsaken me?" (Psalm 22:1) and "Into your hands I commit my spirit" (Psalm 31:5). David's Psalm 110 — "The LORD says to my lord: Sit at my right hand" — became the New Testament's most-quoted verse, its shorthand for the risen Christ enthroned. And where God had promised through Ezekiel to set over his flock "one shepherd, my servant David" (Ezekiel 34:23), Jesus answered in person: "I am the good shepherd; the good shepherd lays down his life for the sheep" (John 10:11). The Bible gives him the last word on the family line, in its final chapter: "I am the Root and the Offspring of David" (Revelation 22:16).

Questions People Ask

Did David write all 150 Psalms?

No — and the book never claims he did. Seventy-three psalms carry his name in their ancient superscriptions; others name Asaph, the sons of Korah, Solomon, Moses, Heman, and Ethan, about fifty are anonymous, and some (like Psalm 137, sung by the rivers of Babylon) clearly come from centuries after him. Psalms is Israel's hymnal, gathered over roughly a thousand years into its final five-book form. But David is its fountainhead: he set the pattern of turning raw life into sung prayer, organized the temple music, and is called "the sweet psalmist of Israel" (2 Samuel 23:1) — and the New Testament credits him with some untitled psalms too, such as Psalm 2 (Acts 4:25).

How can a murderer and adulterer be "a man after God's own heart" — and write Scripture?

The phrase (1 Samuel 13:14; Acts 13:22) describes the direction of David's heart, not a verdict that he was sinless — and it was spoken years before his great fall. What set David apart was not that he never sinned but how he broke when confronted: no excuses, no scapegoat, only "I have sinned against the LORD" (2 Samuel 12:13), followed by the most complete confession ever written, Psalm 51 — which he handed to the choir director for the whole congregation to sing. As for writing Scripture, inspiration rests on God's Spirit, not the writer's résumé: Moses had killed a man, and Paul had persecuted the church. That the Bible records its greatest king's worst sins — in books he and his own court preserved — is one of the strongest marks of its honesty.

Why are the psalms so raw — anger, despair, even cursing? Is praying like that allowed?

More psalms lament than celebrate — and God chose to include them, which means honest prayer is not merely permitted; it is taught. The genius of the psalms is where they carry the anger and despair: to God, rather than out onto people. Even the harsh "cursing" psalms are acts of surrender — instead of taking revenge, the psalmist hands the whole case to the Judge of all the earth, exactly the move Paul commands: "Do not take revenge… leave room for God's wrath" (Romans 12:19). Jesus himself prayed the bleakest of them all, Psalm 22, from the cross. The psalms give sufferers both permission and language: you can say anything to God, as long as you are saying it to God.

Did Jesus quote the Psalms?

Constantly — the Psalms are the Old Testament book the New Testament quotes most, and David's Psalm 110 is its single most-quoted verse. Jesus used it to silence his questioners: "David himself, speaking by the Holy Spirit, declared: 'The Lord said to my Lord…'" (Mark 12:36). He applied Psalm 118's rejected stone to himself, sang the Passover psalms with his disciples on the night he was betrayed (Matthew 26:30), and died with two of David's prayers on his lips: "My God, my God, why have you forsaken me?" (Psalm 22:1) and "Into your hands I commit my spirit" (Psalm 31:5). After the resurrection he named the Psalms outright as Scripture written about him (Luke 24:44). The Psalms were, quite simply, Jesus' prayer book.

Read the character study: David