Why was David a man after God's own heart despite his sins?
God called David “a man after my heart,” and He said it of a man who committed adultery and arranged a murder. The phrase never meant a spotless record; it meant a heart aimed at God, one that broke when it was confronted and ran to mercy instead of excuses. Saul defended himself and lost the kingdom; David confessed and kept it. Grace put away his sin, discipline still fell on his house, and the greater Son of David would come as the One who always did the Father's will.
This question arose from studying Why did God promise David an eternal throne? and Why did David spare Saul?.
Begin by reading
Go into the Word
Not a summary of these passages: the passages themselves. Read them, then come back to the study below.
The study
What the Scripture says
The phrase describes the aim of a life, not a spotless record
Samuel told Saul that God had sought “a man after his own heart,” and centuries later Paul repeated the verdict: “I have found David the son of Jesse, a man after my heart, who will do all my will.” The defining clause is the last one. God was not certifying David's performance; He was describing a man whose will had been handed over to God's. That is why the title can sit on top of a life with terrible chapters in it.
But now your kingdom shall not continue. Yahweh has sought for himself a man after his own heart, and Yahweh has appointed him to be prince over his people, because you have not kept that which Yahweh commanded you.”But now thy kingdom shall not continue: the Lord hath sought him a man after his own heart, and the Lord hath commanded him to be captain over his people, because thou hast not kept that which the Lord commanded thee.
When he had removed him, he raised up David to be their king, to whom he also testified, ‘I have found David the son of Jesse, a man after my heart, who will do all my will.’And when he had removed him, he raised up unto them David to be their king; to whom also he gave testimony, and said, I have found David the son of Jesse, a man after mine own heart, which shall fulfil all my will.
Saul shows what the phrase does not mean
Saul also said the words “I have sinned,” twice. But listen to the reasons. The first time, “because I feared the people, and obeyed their voice.” The second, “please honor me now before the elders of my people.” Saul's religion was crowd management; he wanted the appearance of obedience while keeping the throne of his own reputation. Samuel had already told him the standard: “to obey is better than sacrifice.” God was never looking for the better offering; He was looking for the yielded heart.
Samuel said, “Has Yahweh as great delight in burnt offerings and sacrifices, as in obeying the voice of Yahweh? Behold, to obey is better than sacrifice, and to listen than the fat of rams.And Samuel said, Hath the Lord as great delight in burnt offerings and sacrifices, as in obeying the voice of the Lord? Behold, to obey is better than sacrifice, and to hearken than the fat of rams.
Saul said to Samuel, “I have sinned; for I have transgressed the commandment of Yahweh, and your words, because I feared the people, and obeyed their voice.And Saul said unto Samuel, I have sinned: for I have transgressed the commandment of the Lord, and thy words: because I feared the people, and obeyed their voice.
Then he said, “I have sinned: yet please honor me now before the elders of my people, and before Israel, and come back with me, that I may worship Yahweh your God.”Then he said, I have sinned: yet honour me now, I pray thee, before the elders of my people, and before Israel, and turn again with me, that I may worship the Lord thy God.
David's sin was real, grave, and hidden until God exposed it
Scripture refuses to airbrush its heroes. David saw, sent, took, and then had Uriah killed with a letter carried by the man himself. For months the cover story held, until the narrator delivers the quiet verdict, “the thing that David had done displeased Yahweh.” Then Nathan's parable springs the trap with four words: “You are the man.” The question is not whether David sinned; it is how he responded when he was caught.
At evening, David arose from his bed and walked on the roof of the king’s house. From the roof, he saw a woman bathing; and the woman was very beautiful to look at. David sent and inquired after the woman. One said, “Isn’t this Bathsheba, the daughter of Eliam, the wife of Uriah the Hittite?” David sent messengers, and took her; and she came in to him, and he lay with her (for she was purified from her uncleanness); and she returned to her house.And it came to pass in an eveningtide, that David arose from off his bed, and walked upon the roof of the king’s house: and from the roof he saw a woman washing herself; and the woman was very beautiful to look upon. And David sent and enquired after the woman. And one said, Is not this Bath–sheba, the daughter of Eliam, the wife of Uriah the Hittite? And David sent messengers, and took her; and she came in unto him, and he lay with her; for she was purified from her uncleanness: and she returned unto her house.
In the morning, David wrote a letter to Joab, and sent it by the hand of Uriah. He wrote in the letter, saying, “Send Uriah to the forefront of the hottest battle, and retreat from him, that he may be struck, and die.”And it came to pass in the morning, that David wrote a letter to Joab, and sent it by the hand of Uriah. And he wrote in the letter, saying, Set ye Uriah in the forefront of the hottest battle, and retire ye from him, that he may be smitten, and die.
When the mourning was past, David sent and took her home to his house, and she became his wife, and bore him a son. But the thing that David had done displeased Yahweh.And when the mourning was past, David sent and fetched her to his house, and she became his wife, and bare him a son. But the thing that David had done displeased the Lord.
Nathan said to David, “You are the man. This is what Yahweh, the God of Israel, says: ‘I anointed you king over Israel, and I delivered you out of the hand of Saul.And Nathan said to David, Thou art the man. Thus saith the Lord God of Israel, I anointed thee king over Israel, and I delivered thee out of the hand of Saul;
Why have you despised Yahweh’s word, to do that which is evil in his sight? You have struck Uriah the Hittite with the sword, and have taken his wife to be your wife, and have slain him with the sword of the children of Ammon.Wherefore hast thou despised the commandment of the Lord, to do evil in his sight? thou hast killed Uriah the Hittite with the sword, and hast taken his wife to be thy wife, and hast slain him with the sword of the children of Ammon.
Repentance was the difference
David did not mount a defense. He said, “I have sinned against Yahweh,” and in the psalm he wrote from that wreckage he refused every excuse: “Against you, and you only, have I sinned.” He appealed to mercy, “Have mercy on me, God, according to your loving kindness,” asked for what only God can make, “Create in me a clean heart, O God,” and brought the only offering left: “The sacrifices of God are a broken spirit.” Nathan's answer is the gospel in miniature: “Yahweh also has put away your sin.” David knew the blessedness of that, which is why Paul quotes him to prove that righteousness is counted apart from works.
David said to Nathan, “I have sinned against Yahweh.” Nathan said to David, “Yahweh also has put away your sin. You will not die.And David said unto Nathan, I have sinned against the Lord. And Nathan said unto David, The Lord also hath put away thy sin; thou shalt not die.
Have mercy on me, God, according to your loving kindness. According to the multitude of your tender mercies, blot out my transgressions.Have mercy upon me, O God, according to thy lovingkindness: according unto the multitude of thy tender mercies blot out my transgressions.
Against you, and you only, have I sinned, and done that which is evil in your sight; that you may be proved right when you speak, and justified when you judge.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.
Create in me a clean heart, O God. Renew a right spirit within me.Create in me a clean heart, O God; and renew a right spirit within me.
The sacrifices of God are a broken spirit. A broken and contrite heart, O God, you will not despise.The sacrifices of God are a broken spirit: a broken and a contrite heart, O God, thou wilt not despise.
I acknowledged my sin to you. I didn’t hide my iniquity. I said, I will confess my transgressions to Yahweh, and you forgave the iniquity of my sin. Selah.I acknowledged my sin unto thee, and mine iniquity have I not hid. I said, I will confess my transgressions unto the Lord; and thou forgavest the iniquity of my sin. Selah.
Even as David also pronounces blessing on the man to whom God counts righteousness apart from works, “Blessed are they whose iniquities are forgiven, whose sins are covered. Blessed is the man whom the Lord will by no means charge with sin.”Even as David also describeth the blessedness of the man, unto whom God imputeth righteousness without works, Saying, Blessed are they whose iniquities are forgiven, and whose sins are covered. Blessed is the man to whom the Lord will not impute sin.
If we confess our sins, he is faithful and righteous to forgive us the sins, and to cleanse us from all unrighteousness.If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness.
Grace forgave him; discipline still fell, and the greater Son of David came
The same sentence that announced forgiveness announced consequence: “the sword will never depart from your house,” and the child died. God's pardon is free, but sin still works its damage in a family and a nation, and “whom the Lord loves, he chastens.” David's deepest need was not a nicer record but a new heart, exactly what God later promised: “I will also give you a new heart.” That promise arrives in David's greater Son, who could say without qualification, “I always do the things that are pleasing to him.” What David could not be, Jesus is, and His obedience is credited to everyone who trusts Him.
Now therefore the sword will never depart from your house, because you have despised me, and have taken the wife of Uriah the Hittite to be your wife.’Now therefore the sword shall never depart from thine house; because thou hast despised me, and hast taken the wife of Uriah the Hittite to be thy wife.
However, because by this deed you have given great occasion to Yahweh’s enemies to blaspheme, the child also who is born to you shall surely die.”Howbeit, because by this deed thou hast given great occasion to the enemies of the Lord to blaspheme, the child also that is born unto thee shall surely die.
For whom the Lord loves, he chastens, and scourges every son whom he receives.”For whom the Lord loveth he chasteneth, and scourgeth every son whom he receiveth.
I will also give you a new heart, and I will put a new spirit within you; and I will take away the stony heart out of your flesh, and I will give you a heart of flesh.A new heart also will I give you, and a new spirit will I put within you: and I will take away the stony heart out of your flesh, and I will give you an heart of flesh.
As you read, you may wonder…
Scripture raises the next question
Studying the Word naturally opens more of it. Follow what you just read: it leads somewhere.
Explore further
What is repentance?→The Gospel trail““Repent therefore, and turn again, that your sins may be blotted out, so that there may come times of refreshing from the presence of the Lord,Repent ye therefore, and be converted, that your sins may be blotted out, when the times of refreshing shall come from the presence of the Lord;”Can God's grace really cover my worst sins?→Our Walk with Him trail“The saying is faithful and worthy of all acceptance, that Christ Jesus came into the world to save sinners; of whom I am chief.This is a faithful saying, and worthy of all acceptation, that Christ Jesus came into the world to save sinners; of whom I am chief.”How do I know my repentance is genuine?→The Gospel trail“For godly sorrow works repentance to salvation, which brings no regret. But the sorrow of the world works death.For godly sorrow worketh repentance to salvation not to be repented of: but the sorrow of the world worketh death.”Hold onto these
Verses to meditate on
But now your kingdom shall not continue. Yahweh has sought for himself a man after his own heart, and Yahweh has appointed him to be prince over his people, because you have not kept that which Yahweh commanded you.”But now thy kingdom shall not continue: the Lord hath sought him a man after his own heart, and the Lord hath commanded him to be captain over his people, because thou hast not kept that which the Lord commanded thee.
David said to Nathan, “I have sinned against Yahweh.” Nathan said to David, “Yahweh also has put away your sin. You will not die.And David said unto Nathan, I have sinned against the Lord. And Nathan said unto David, The Lord also hath put away thy sin; thou shalt not die.
Create in me a clean heart, O God. Renew a right spirit within me.Create in me a clean heart, O God; and renew a right spirit within me.
The sacrifices of God are a broken spirit. A broken and contrite heart, O God, you will not despise.The sacrifices of God are a broken spirit: a broken and a contrite heart, O God, thou wilt not despise.
When he had removed him, he raised up David to be their king, to whom he also testified, ‘I have found David the son of Jesse, a man after my heart, who will do all my will.’And when he had removed him, he raised up unto them David to be their king; to whom also he gave testimony, and said, I have found David the son of Jesse, a man after mine own heart, which shall fulfil all my will.
Worth visiting