God forgive David when he took Bathsheba, the wife of Uriah because
Answer Details
According to the Bible, David, who was the king of Israel, committed adultery with Bathsheba, the wife of Uriah, who was one of his soldiers. David was motivated by his lust for Bathsheba, and he even arranged for Uriah to be killed in battle to cover up his sin. When the prophet Nathan confronted David about his sin, David recognized his wrongdoing and repented before God. God forgave David, but David still faced consequences for his actions, including the death of the child he had with Bathsheba. So the answer to the question is that David accepted his guilt and repented before God.