Few figures in the Old Testament live a life as dramatic as David's. A shepherd who became the second king of Israel, he is both the hero who defeated Goliath with a simple sling and the man who committed adultery and had someone killed to cover it up. Scripture hides neither side — and that very honesty is what makes his story one of the most studied in the whole Bible.
This article walks through David's full life — from his secret anointing in Bethlehem to the throne of Israel, through King Saul's persecution, God's everlasting covenant with him, and the fall that nearly destroyed his reign. Along the way, you'll understand why he is called "a man after God's own heart," and why his lineage points directly to Jesus Christ.
If you've ever wondered how God chooses and prepares someone for a greater purpose long before that person realizes it, David's journey is one of the clearest examples in Scripture — a theme also explored in Does God Have a Plan for Every Person?
The Chosen Shepherd: A Secret Anointing in Bethlehem
David's story begins far from any throne. He was the youngest of eight brothers, the son of Jesse of Bethlehem, and spent his days tending his family's sheep (1 Samuel 16:11). It was to this overlooked young man that God sent the prophet Samuel, after rejecting Saul as king because of his disobedience (1 Samuel 15:23; 16:1).
When Samuel saw David's older brothers — tall, strong, looking every bit like kings — he assumed one of them would be chosen. God corrected him with one of the most quoted lines in the Old Testament:
"For the Lord sees not as man sees: man looks on the outward appearance, but the Lord looks on the heart."
1 Samuel 16:7David was called in from the field, anointed by Samuel in front of his brothers, and "the Spirit of the Lord rushed upon David from that day forward" (1 Samuel 16:13). But the anointing did not bring an immediate throne — only the beginning of a long wait.
David and Goliath: The Faith That Faced a Giant
Years later, still too young to serve in the army, David was sent to the battle lines to bring supplies to his brothers — and found the entire Israelite army paralyzed with fear before Goliath, a Philistine giant who had been taunting Israel for forty days (1 Samuel 17:16). While seasoned soldiers backed away, David asked a question that revealed his true perspective: "who is this uncircumcised Philistine, that he should defy the armies of the living God?" (1 Samuel 17:26).
Refusing Saul's heavy armor, David went to meet the giant with only his staff, a sling, and five smooth stones from the stream, publicly declaring: "You come to me with a sword... but I come to you in the name of the Lord of hosts" (1 Samuel 17:45). A single stone struck Goliath's forehead, knocking him down instantly — and David used the giant's own sword to behead him (1 Samuel 17:49-51).
The episode is more than just a story of physical courage. It sets the pattern that would define David's entire life: the conviction that victory does not depend on the size of the enemy, but on the faithfulness of the God in whom he trusted — the same conviction that would sustain David through the difficult years still ahead.
Friendship with Jonathan and Years Fleeing King Saul
The victory over Goliath brought David instant fame — and, with it, Saul's jealousy. When the women of Israel sang, "Saul has struck down his thousands, and David his ten thousands" (1 Samuel 18:7), the king began to see the young man as a threat to his own throne. From then on, David would spend years as a fugitive, hiding in caves and in the wilderness while Saul repeatedly tried to kill him.
It was during this period that one of the Bible's deepest friendships was born: Jonathan, Saul's own son, "made a covenant with David, because he loved him as his own soul" (1 Samuel 18:1,3), protecting him even against his own father's interests. Twice David had the chance to kill Saul and seize the throne by force — and both times he refused, saying he would not raise his hand "against the Lord's anointed" (1 Samuel 24:6; 26:9-11). He chose to wait on God's timing rather than grab power on his own.
King Over All Israel and the Everlasting Covenant
After Saul and Jonathan died in battle, David was anointed king — first over Judah, and seven years later over all Israel (2 Samuel 5:1-5), at the age of thirty. One of his first acts as king was to capture Jerusalem and turn it into the "City of David" (2 Samuel 5:6-9), establishing it as both the nation's political and, later, religious center.
Established on the throne, David wanted to build a permanent temple for God — but received an unexpected answer through the prophet Nathan: he would not be the one to build a house for God, but God would build a house for him.
This promise — known as the Davidic Covenant — became the foundation of messianic hope throughout the rest of the Old Testament. For centuries the prophets pointed toward a descendant of David who would reign forever, an expectation the New Testament identifies directly with Jesus (Luke 1:32-33).
The Fall: David's Sin with Bathsheba and Nathan's Confrontation
No amount of success, however, made David immune to temptation. In 2 Samuel 11, instead of leading his army into battle, David stayed behind in Jerusalem — and from his rooftop, he saw Bathsheba bathing. He sent for her, committed adultery, and when he discovered she was pregnant, tried to cover up the sin. When the cover-up failed, he had Uriah — Bathsheba's husband and one of his own soldiers — placed at the front line of battle and abandoned there to die (2 Samuel 11:14-17).
For nearly a year, David confessed nothing — until the prophet Nathan confronted him with a parable about a rich man who stole a poor man's only lamb. Outraged, David declared that such a man deserved to die — and Nathan answered with four words that cut through his defenses: "You are the man" (2 Samuel 12:7).
David's response to the direct accusation was immediate, with no excuses: "I have sinned against the Lord" (2 Samuel 12:13). Out of that confession came Psalm 51, still regarded today as the fullest biblical model of genuine repentance — a theme explored in depth in How to Ask God for Forgiveness? and in How to Deal with Guilt According to the Bible.
God forgave David — but made clear, through Nathan, that the sin would carry real and lasting consequences within his own family (2 Samuel 12:10-14).
The Consequences: Grief, Loss and Absalom's Rebellion
The first consequence came quickly: the son born from the relationship with Bathsheba fell gravely ill. David fasted and prayed intensely for seven days, lying on the ground, pleading for the child's life — but the boy died (2 Samuel 12:15-18). This episode of sincere intercession, even without the hoped-for outcome, is explored further in How to Pray for Your Children.
In the years that followed, the "sword" Nathan had predicted showed itself within David's own household: one of his sons, Amnon, committed a serious crime against his half-sister Tamar; Absalom, her brother, avenged her by killing Amnon; and Absalom himself later rebelled against his father, seizing Jerusalem and forcing David into exile (2 Samuel 13-15). The rebellion ended with Absalom's death in battle — and with one of the most painful laments in all of Scripture: "O my son Absalom, my son, my son Absalom! Would I had died instead of you" (2 Samuel 18:33).
David's Legacy: Psalmist and Ancestor of the Messiah
Despite the fall and its lasting consequences, David's life did not end in ruin. He is credited as the author of much of the book of Psalms — including texts as well known as Psalm 23 ("The Lord is my shepherd") — which continue to shape Christian prayer and worship three thousand years later. His last recorded words reaffirm the same everlasting covenant he had received decades earlier: "he has made with me an everlasting covenant, ordered in all things and secure" (2 Samuel 23:5).
David's most enduring legacy, however, is genealogical: the New Testament opens by tracing Jesus' lineage directly to him — "The book of the genealogy of Jesus Christ, the son of David" (Matthew 1:1,6) — and the Gospels repeatedly apply the title "son of David" to Jesus as messianic recognition (Matthew 21:9). The promise of an eternal throne made to a former shepherd finds, in the person of Jesus, its ultimate fulfillment.
What David's Life Teaches Today
David's journey is not just the biography of an ancient king — it carries direct lessons about calling, failure and God's faithfulness even in the face of serious sin.
Who Was David in the Bible — Summary
- 🐑Background: a shepherd in Bethlehem, the youngest of eight brothers, anointed by Samuel (1 Samuel 16:11-13)
- ⚔️Goliath: defeated the Philistine giant with a sling and faith in God (1 Samuel 17:45-50)
- 🏃Persecution: fled from King Saul for years, sparing his life twice (1 Samuel 24; 26)
- 👑Reign: unified Israel and made Jerusalem its capital (2 Samuel 5:1-9)
- 📜Covenant: received the promise of an eternal throne for his descendants (2 Samuel 7:12-16)
- 😔Fall: sinned with Bathsheba and had Uriah killed, confronted by the prophet Nathan (2 Samuel 11-12)
- ✍️Legacy: author of much of the Psalms and direct ancestor of Jesus Christ (Matthew 1:1,6)
Continue reading about calling, failure and restoration:
Who Was Moses? Who Was the Apostle Paul? Who Was Peter in the Bible? How to Ask God for Forgiveness?