2 Samuel 11:8
And David said to Uriah, Go down to thy house, and wash thy feet. And Uriah departed out of the king’s house, and there followed him a mess of meat from the king. And David said to Uriah, Go down to thy house, and wash thy feet. And Uriah departed out of the king’s house, and there followed him a mess of meat from the king.
David sent Uriah home from the king's house with food from the king, using royal hospitality to conceal his adultery with Bathsheba. His intent was to bring Uriah home so that Bathsheba's pregnancy would appear to be Uriah's. When concealment failed, he arranged Uriah's death in battle so that he could marry Bathsheba, avert suspicion, and preserve his royal honor. Thus the effort to escape the consequences of one sin led him to commit murder and to violate God's law. The account shows that idleness left David open to temptation, and failing to be occupied in useful work led him to adultery and to arranging Uriah's death. He would not have committed the murder of Uriah if he had been occupied in useful work.
Indulgence of appetite and passion led even a man especially favored by God to incur God's displeasure. After departing from God, David misused his royal authority in commands connected with Uriah that led to sin. That authority was given by God to be exercised only in harmony with God's law, so Joab sinned by obeying the king's command against that law. The sin involving Uriah and Bathsheba was a grievous transgression that God did not justify or excuse. Even though David had once been faithful, his wrongdoing brought God's rebuke and punishment. His later repentance brought forgiveness and spared his life, but did not remove all punishment.
David's departure from God's instruction and attempt to cover his sin stained a formerly honorable reputation, showing that setting aside God's word brings consequences. The record shows that even a man entrusted with great responsibility and favored by God could be overcome by temptation and commit sin. It is preserved as a warning and lesson for later generations. It stands as evidence that those who struggle and fall may through God's grace take heart again, rise above evil, and renew the conflict.