Although David was regarded as a man after God's heart, he acted badly before God when he
Answer Details
David committed sins of adultery and murder. He committed adultery with Bathsheba, the wife of Uriah, and arranged to have Uriah killed in battle to cover up his sin. This action was condemned by God, and the prophet Nathan was sent to rebuke him. Despite this sin, David repented and was forgiven by God, but the consequences of his actions continued to affect him and his family for years to come.