David was "a man after God's own heart." But as faithful as David was, he experienced great failure and sin in his life. Sin is directly against God, and it brings a high cost. But praise God that His Grace is greater than our sin!
References: 2 Samuel 11-12; Psalm 51:1-4