Sin has serious consequences. God forgave David, but his son still died. God forgave David but the sword did not depart from his house. The same thing is true in your life and my life. God forgives our sin. Our sin no longer separates us from God, but it greatly impacts our lives. God extended grace and mercy to David, but He also brought justice for Uriah and the other men David killed.
II Samuel 12