David committed several sins throughout his life. Two left a deep mark on his story: his adultery with Bathsheba followed by the death of Uriah, and the census of the people of Israel, motivated by pride.
The Bible also records other moments when David lied, neglected responsibilities as a father, and acted in ways that went against God’s will.
David’s story is not that of a flawless hero. It is the story of a real man, with real sins, who faced real consequences, and yet was still called “a man after God’s own heart” (1 Samuel 13:14). Understanding David’s sins helps us understand both the seriousness of God’s holiness and the grace He offers.
1. The Sin with Bathsheba and Uriah
This is the most well-known episode in David’s life: his relationship with Bathsheba and the death of Uriah. It was springtime, the season when kings went out to war. David remained in Jerusalem while the soldiers were fighting. From the palace rooftop, David saw a woman bathing. Curious, he asked his servants to find out who she was and learned that she was Bathsheba, Uriah’s wife.
Even knowing she was a married woman, David ignored the warning and sent for her. When Bathsheba became pregnant, David tried in every way to cover up his sin.
First, David attempted to bring Uriah home before the war ended so that the child would appear to be his. But Uriah refused, because his fellow soldiers were still in the field, and he would not go home to eat, drink, and lie with his wife while they were fighting. Not even intoxication changed his decision.
David then moved from covering up his sin to planning murder. He sent a message to Joab, the army commander, ordering that Uriah be placed on the front lines of battle. The letter was delivered by Uriah himself. Without knowing it, he carried his own death sentence. Uriah died in battle exactly as David had planned.
The prophet Nathan confronted David with a parable about a rich man who took the only lamb of a poor man. David reacted with outrage to the story, but when Nathan revealed that it was about him, David realized his guilt and admitted his sin.
Even so, the prophet announced that God had forgiven David’s sin and that he would not die. But consequences would follow. The sword would never depart from his house. The son born from the adultery would die. What David had done in secret would be done against him in broad daylight (2 Samuel 12:10–12). Grace did not remove the consequences.
Psalm 51, written by David after this confrontation, records his repentance. In it, David does not minimize his sin or blame circumstances. He speaks directly to God:
Against you, you only, have I sinned and done what is evil in your sight; so you are right in your verdict and justified when you judge.
- Psalm 51:4
This Psalm is one of the Bible’s most honest texts about the nature of sin.
Read more on Bathsheba and Uriah.
2. The Sin of Taking a Census of Israel
Near the end of David’s reign, he ordered Joab to count the people of Israel and Judah. Joab, who was not known for his godliness, questioned him, pointing out that counting the people would be problematic.
May the Lord your God multiply the troops a hundred times over, and may the eyes of my lord the king see it. But why does my lord the king want to do such a thing?
- 2 Samuel 24:3
But David insisted. The census was carried out. Soon afterward, David’s conscience troubled him:
David was conscience-stricken after he had counted the fighting men, and he said to the Lord, “I have sinned greatly in what I have done. Now, Lord, I beg you, take away the guilt of your servant. I have done a very foolish thing.”
- 2 Samuel 24:10
Why was taking the census a sin? The Bible does not explain it in detail, but interpreters often point to military pride and reliance on the number of warriors rather than dependence on God, precisely the mistake Israel’s kings were prone to make (Psalm 20:7). Counting the army to boast in human strength was placing Israel’s security in human power instead of God’s protection.
God gave David three options for punishment: seven years of famine, three months of fleeing before enemies, or three days of plague. David chose the plague, preferring to fall into God’s hands rather than human hands. Seventy thousand people died. When the angel of destruction reached Jerusalem, God commanded him to stop. David saw the angel and cried out that the punishment should fall on him and his family rather than on the innocent people (2 Samuel 24:17).
David bought the threshing floor of Araunah, built an altar there, and offered burnt offerings to God. The plague stopped. That site would later become the place where Solomon built God’s temple in Jerusalem (2 Chronicles 3:1).
3. The Sin of Lying at Nob
Before becoming king, while fleeing from Saul, David came to Nob, the city of the priests, and sought out the high priest Ahimelech. The priest was uneasy seeing David without an escort. David lied and said he was on a secret mission from the king and that his men were waiting elsewhere. He asked for bread and a weapon. Ahimelech gave him the consecrated bread and the sword of Goliath.
The problem was that Doeg the Edomite, one of Saul’s servants, was present and witnessed everything. When Saul learned that Ahimelech had helped David, he summoned the priests and accused them of conspiracy. Ahimelech defended himself honestly, explaining that he did not know there was tension between David and Saul. Saul refused to listen. He ordered Doeg to kill the priests. Doeg killed eighty-five priests that day and afterward destroyed the entire city of Nob, including women, children, and animals (1 Samuel 22:18–19).
When David learned what had happened, his response showed that he understood the weight of his lie:
Then David said to Abiathar, “That day, when Doeg the Edomite was there, I knew he would be sure to tell Saul. I am responsible for the death of your whole family.
- 1 Samuel 22:22
David did not blame Saul for the deaths of the priests. He accepted responsibility. The lie that protected his escape cost innocent lives.
4. The Sin of Omission with Amnon
Amnon, David’s oldest son and heir to the throne, violated Tamar, his half-sister and the daughter of Maacah. The violence was premeditated and cruel. After committing the act, Amnon’s obsession turned into intense hatred. He sent Tamar away, leaving her devastated.
David’s reaction when he learned what happened is recorded in 2 Samuel 13:21: “When King David heard all this, he was furious.” The statement ends there. There is no record that David did anything. He did not discipline Amnon. He did not seek justice for Tamar. His anger remained within the household but produced no action.
Some ancient manuscripts, including the Septuagint (the Greek translation of the Old Testament), add that David did not rebuke Amnon “because he loved him, since he was his firstborn son.” Whether because of misplaced love for his eldest son or paralysis in the face of family conflict, David failed to act. And that failure came at a cost. Absalom, Tamar’s brother, waited two years and then killed Amnon. Afterward, he fled to Geshur, the land of his maternal grandfather, where he remained for three years.
David’s omission was not a momentary lapse. It was a serious failure. Absalom later returned to Jerusalem, but David refused to see him for two years. When reconciliation finally happened, it remained superficial. The rebellion Absalom later led against his father was, in part, the result of years of emotional distance and lack of justice.
5. Other Sins of David
The Alliance with the Philistines
During the years he was fleeing from Saul, David sought refuge with Achish, king of Gath, an enemy of Israel (1 Samuel 27). He lived in Philistine territory for one year and four months and conducted military raids that he falsely claimed were against Israelite cities while actually attacking southern peoples. David maintained his protection through deception.
His Harsh Reaction Toward Michal
When Michal, David’s wife, criticized him for dancing before the Ark (2 Samuel 6:20–23), David responded harshly. The Bible records that Michal had no children until the day of her death. The text does not explain whether this was David’s decision or a divine consequence, but the coldness of his response contrasts with the same man who danced joyfully before God.
The Treatment of the Concubines
When David returned to Jerusalem after Absalom’s rebellion (2 Samuel 20:3), he placed the ten concubines whom Absalom had taken into custody. He provided for them financially but never again lived with them. They remained “like widows with a living husband” until their deaths. These women had been victims of Absalom’s rebellion, yet David’s response was to isolate them.
David’s Repentance and Psalm 51
Psalm 51 is David’s poetic expression of repentance. It was written specifically after the prophet Nathan confronted him regarding his sin with Bathsheba and Uriah. The psalm does not attempt to negotiate, explain, or minimize wrongdoing. It begins with a plea for mercy based not on David’s merit, but on God’s character.
Three things stand out about David’s repentance in Psalm 51. The first is acknowledgment. David speaks plainly:
For I know my transgressions, and my sin is always before me.
- Psalm 51:3
He does not simply say, “I made mistakes” in vague terms. He calls it what it is: transgression, evil, sin.
The second is a vertical understanding of sin. “Against you, you only, have I sinned.” This does not mean Uriah and Bathsheba were not harmed. It means David understood that every sin is ultimately an offense against God. It is a theological understanding of sin.
The third is the request for inward transformation: “Create in me a pure heart, O God, and renew a steadfast spirit within me.” (Psalm 51:10). David does not ask only for forgiveness. He asks for change. He understands that the problem was not merely what he had done, but what he was capable of doing.
Psalm 51 serves as a biblical model of genuine repentance. It is not bargaining with God. It is the honest surrender of someone who knows he has no defense to offer.
The Consequences of David’s Sins
The Bible does not present David’s sins as stories with happy endings after repentance. There was forgiveness, but there were consequences too. After David’s sin with Bathsheba and Uriah, the prophet Nathan announced four consequences (2 Samuel 12:10–14):
The son born from the adultery died. David fasted and prayed for seven days. When the child died, he got up, washed himself, and ate. His servants did not understand. David explained that while the child was alive, there was reason to pray. After death, there was nothing more to do (2 Samuel 12:22–23).
Violence never departed from his household. Amnon violated Tamar. Absalom killed Amnon. Absalom rebelled against David, slept with his concubines in the sight of all Israel, and was killed by Joab. Adonijah tried to take the throne. The sword passed from generation to generation, just as Nathan had announced.
Absalom’s rebellion forced David to flee Jerusalem humiliated, barefoot, and weeping while men cursed him along the road (2 Samuel 15:30). The king who had secretly taken Uriah’s wife had his own women taken in broad daylight.
After the sin of the census, seventy thousand Israelites died from a plague (2 Samuel 24:15). Men who had no part in David’s decision paid with their own lives.
This does not mean God abandoned David. The royal line continued. Solomon reigned. The promise made in 2 Samuel 7 remained in place. But the Bible leaves no doubt: sin has serious consequences, even after repentance, even after forgiveness.
What We Learn from David’s Sins
The story of David’s sins is uncomfortable precisely because he was not an evil man. He was a man who loved God, wrote psalms of deep faith, led Israel courageously, and was chosen by God Himself. And yet he still did terrible things.
This dismantles two illusions that the human heart likes to maintain.
The first is the illusion that those who know God are protected from serious sin. David knew God better than almost anyone of his generation. He experienced the weight of the Ark, the fire of the Spirit, and the intimacy of the Psalms. And yet, on an idle afternoon, he saw a woman, desired her, and followed that desire through a series of increasingly destructive choices. Sin does not respect spiritual maturity.
The second illusion is that repentance erases everything. David genuinely repented, and God forgave him. But his children still lived with the consequences of those choices. Tamar remained devastated. Uriah remained dead. The concubines remained isolated. Forgiveness restores a relationship with God. It does not undo the damage that has been done.
What David’s story also reveals is that God works through real and broken people. Solomon was born from Bathsheba. The line of Jesus Christ passed through that story. Matthew 1:6 records: “David was the father of Solomon, whose mother had been Uriah’s wife.” The Bible did not soften the past to make Jesus’ genealogy more presentable. It included the story with all its pain.
This is not a cover-up of David’s sin. It is a testimony to God’s character: He does not need perfect people to fulfill His purposes. He needs people who, when they fall, return to Him honestly.
Psalm 51 exists because David fell. And it exists because he returned. That combination, failure and return is not a pattern to normalize. It is a reminder that God’s mercy is real, and that genuine repentance always finds an answer.
For those who read this story today, the question it asks is not, “Are you better than David?” The question is: when you fall, what do you do next?
Learn more about David’s life:
- The Story of David (the best-known king of Israel)
- David: The Characteristics of A Man After God's Own Heart
- David’s Wives: The King’s 8 Women and His Concubines