King David is called a "man after God's own heart."
Considering that he lusted after his neighbor's wife, committed adultery with her, and had her husband murdered, the Lord's description of him is remarkable.
How could a man who was convicted a murderer and an adulterer also be called one after God's own heart?
The answer is simple but profound: God did not regard David according to the actions of his sinful nature, but according to the deepest motivations and disposition of his heart and will; and these were revealed by David's response to the conviction which Nathan the prophet brought upon him; a conviction which brought immediate total confession and repentance, and a broken and contrite heart.
This response exemplified the shepherd king's walk with God throughout the entire journey of his life.
If, after David had fallen, he made excuses, rationalized, or resisted the clear message of his sinfulness, it would have been a totally different story.
His heart would have revealed a self-justifying, self-righteous attitude with no realization of his absolute need for God's mercy.
This would have defeated and defined him as a man after his own heart.
But the immediacy and completeness of David's confession...