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 when he discovered that she was pregnant, he arranged for Uriah to be killed in battle. This displeased God, and Nathan the prophet rebuked David for his actions. David eventually repented and turned back to God, but his actions had consequences for his family and his kingdom.