Maybe you're like me. On some weary night you've opened your Bible and quietly thought to yourself: surely the people God used so mightily were holier and stronger than me right from the start? If so, David's story might bring you a strange relief—and maybe even more confusion. Here is a man who wrote psalms that have comforted countless people across the centuries, yet who also committed the grave sins of adultery and murder. And God still called him "a man after my own heart." How can that be? If even someone who fell this hard could still be loved and used by God, what does that mean for you and me, stumbling along as we do today?

From a shepherd boy to the king of Israel

David first appears not in a palace, but out among the sheep in the open country. He was the youngest son of Jesse, keeping the flock near Bethlehem. When the prophet Samuel came at God's command to anoint a new king, it didn't even occur to Jesse to call this youngest son in from the fields. But God does not see the way people see.

The LORD does not look at the things people look at. People look at the outward appearance, but the LORD looks at the heart.
— 1 Samuel 16:7

This boy—overlooked by his father, thought little of by his brothers—was the one God himself had chosen. Later, in the Valley of Elah, he faced Goliath, the giant who made the whole army of Israel tremble. He went forward not in armor and weapons, but in his trust in God. The words he spoke to Goliath still stir something in us when we read them today: "You come against me with sword and spear and javelin, but I come against you in the name of the LORD Almighty" (1 Samuel 17:45). With a single stone and a sling, God used a young shepherd to let an entire army see his deliverance.

The road after that was anything but smooth. Hunted by King Saul's jealousy, David spent years on the run, hiding in caves and across the wilderness. Only when God's time was full was he anointed and seated on Israel's throne, where he established a united and flourishing kingdom. Many remember him as a warrior and a king—but don't forget, he was also the one who, out in the wilderness, in his fear, in his troubles, wrote psalm after psalm. The words we still turn to in our own weakness—"The LORD is my shepherd, I lack nothing" (Psalm 23:1)—came from the hand of this former shepherd.

Real faith, and real failure

If David's story ended here, he would be a more or less blameless hero. But the Bible's honesty is precisely this: it never covers for the people it records. At the height of David's reign, when he was at his most powerful, he committed the heaviest sin of his life.

It was a spring when he should have gone out to war, yet he stayed behind in Jerusalem. One idle evening, from the roof of the palace, he saw Bathsheba, and a craving rose in him that he could not rein back in. He took another man's wife, and then, to cover his sin, he arranged the death of her faithful husband—Uriah the Hittite. The shepherd who had once risked his life for his sheep now sent an innocent man to die on the battlefield for his own sake.

I think we all need to pause here. The Bible does not write David's sin off as "a small slip in a moment of weakness." It lays bare its ugliness and cruelty. Nor did God let it slide just because David was one of his own. He sent the prophet Nathan to David, and through a parable about a rich man seizing a poor man's little lamb, he led David to pronounce judgment on himself—and then said to his face: "You are the man!" (2 Samuel 12:7). In that moment, a king's honor and all his past triumphs could not cover the naked conscience of a sinner.

A heart after God isn't one that never falls—it's one willing to turn back

And that brings us to the real question: if David sinned so greatly, why did God still call him a man after his own heart?

The answer is not in David's perfection—he clearly was not perfect. The answer is this: when his sin was named, David did not argue, did not use his power to silence the prophet, and did not shift the blame onto anyone else. He fell down before God at once and spoke that simple yet world-heavy sentence: "I have sinned against the LORD" (2 Samuel 12:13). Psalm 51, traditionally believed to be the prayer of repentance he wrote after this, is a broken heart in every line:

Have mercy on me, O God, according to your unfailing love; according to your great compassion blot out my transgressions.
— Psalm 51:1
My sacrifice, O God, is a broken spirit; a broken and contrite heart you, God, will not despise.
— Psalm 51:17

A person after God's heart is not one who has never fallen, but one who, after falling, is willing to come back to God in truth. Perhaps the greatest difference between David and Saul lies right here: after Saul sinned, he busied himself with excuses and saving face; after David sinned, he was willing to be utterly broken, to confess, and to ask God to create in him a clean heart. This is not to say sin had no consequences—David carried the family tragedy this sin brought for the rest of his life. God forgave him, yet did not erase the discipline. Repentance has never been a shortcut around consequences; it is the road back into peace with God.

Among believers there is also some honest tension around David: some feel that, as a king, certain things he did are hard to fully defend; others ask how exactly God's choosing and human responsibility hold together. On these questions the Bible does not spell out every detail. I'd encourage you not to settle for what others say—open 1 and 2 Samuel yourself, read slowly through the whole arc of David's life, and let God speak to you himself in prayer.

The lessons David leaves for us today

David's story spans a thousand years, yet what it has to say to us is surprisingly close to home.

  • God looks at the heart, not the résumé. You may feel small, overlooked, not qualified enough—but the standard by which God chooses people has never been the world's way of sizing someone up.
  • Faith is trained in real, particular battles. David could face Goliath because, out in the wilderness where no one was watching, he had already experienced God's care again and again. The faithfulness no one notices today is seen by God.
  • Falling is not the end—refusing to turn back is. Whatever sin you've committed, however far you've wandered, if you're willing to repent in truth as David did, God "will not despise a broken and contrite heart."
  • Being shown grace doesn't mean escaping consequences. The forgiveness is real, and the discipline is real too; the two are not in conflict—in fact they reveal a God who is both loving and faithful.

From David's offspring, to the King who truly reigns

The whole of David's life points, in the end, not to himself. God had promised him that his kingdom and his descendants would endure forever (2 Samuel 7:16). Many generations after David, this promise came to rest on a child born in Bethlehem, just as humble as David had been.

For to us a child is born, to us a son is given, and the government will be on his shoulders. And he will be called Wonderful Counselor, Mighty God, Everlasting Father, Prince of Peace.
— Isaiah 9:6

The New Testament opens by calling Jesus "the son of David." The King who is truly after God's heart, and altogether without flaw, came from the family line of this shepherd who fell and then rose again. All that David longed for in his life, all that he fell short of, all that he could never bring to completion—all of it finds its fulfillment in Christ.

So when you read David's story, may you see not merely the legend of an ancient hero, but a mirror and a light. In the mirror you may catch a glimpse of your own weakness and failure; but the light tells you this: what God has always wanted is not a perfect heart, but a heart willing to come back to him. Wherever you find yourself today, this road home stands open for you still.

Keep exploring

Carry deeper Bible study in your pocket

BiblePro brings AI-powered search, parallel translations, original-language tools and reading plans together — free to download, so you can study deeply anytime, anywhere.