Well you are right about the sin but there is forgiveness . David committed adultery, murder, and lied. Somehow God forgave him he used Nathan to confront him and he past judgement on himself. The child died but he kept Bethsheba why was he allowed to keep her?