There is a saying, “Idle hands are the devil’s workshop.” The devil often tempts us to do, watch, or think about something we shouldn’t. We might apply this thought to King David.
King David was walking around on top of his palace. He should have been out with his men fighting a battle but was at home with idle time. While walking around, he saw a beautiful woman bathing. At that point he committed a sin, coveting and lusting after her. She belonged to someone else and he should have looked away.
The sins snowballed from there. Next King David committed adultery. Bathsheba was not his wife and she had David’s child. To cover it up, David had her husband killed (another sin) and then he took her as his wife.
In 2 Samuel 12, God sends Nathan to confront David about his sins. Nathan begins to tell a story which David thinks is true. We know this because verse 5 says that David’s anger was greatly kindled against the man and he said the man deserves to die. David’s anger was not necessarily sin but if he had acted on it it would have been.
God sent Nathan to confront King David because he committed these sins, thinking no one knew. We can be the same way, thinking no one knows about or sees our sin. But God does.
In the Bible, David is described as a man after God’s own heart. David consulted with God on what he was to do before making decisions. A key response of David was repentance and worship. God mercifully forgave David when he acknowledged his sin. His transgression was not without consequences but David still worshipped the Lord through those consequences.
Just like David, we must repent of our sin when God pierces our hearts. We must worship God when we are disciplined.