David married Bathsheba, but "...the thing David had done displeased the LORD." So, Nathan the prophet went and told him that he had done a very bad sin. David saw he was guilty and was very sorry. He said, "I have sinned against the Lord." Nathan told David that he was forgiven, and the LORD mercifully did not make David die, as the law said he must. However, Nathan said that Bathsheba's first son, born as a result of their sins would die. After Nathan had gone home, the child became sick and died. David was very sad, but humbly accepted the results of his sin. Bathsheba had another son, and they named him Solomon. The LORD loved him, and said to name him Jedidah (it means "loved by the LORD") This name showed that the LORD loved Solomon from when he was born, and also showed that the LORD still loved David, even though he had sinned.