David is an admirable person in the bible to me: strong, full of endurance, a man after God's own heart, and stuck in there even when the 'going got (really) tough! He made a few mistakes like we do, and was very repentive....due to his close relationship he up-kept with God.
In 2 Samuel 12, Nathan the prophet gives David a parable along with a judgement (from the Lord) regarding his episode with Bathsheba, Uriah's wife. David had slept with Bathsheba; upon finding out she was pregnant, he then tries to get Uriah to return home from war (so Uriah will go to bed with her, and assume the child is his own). Uriah was too modest to leave his fellow troops, so (after a few failed attempts to push him home) King David has him put on the front line - along with a few other troops - dangerously close to the enemy (intentionally) and him and several others are killed....
King David then takes Uriah's wife as his own.....Nathan the prophet corrects him, with a Word from the Lord.
((READ Nathan's correction from the LORD *BELOW/LEFT* : ))