King David is well known as the author of many of the Psalms we love and referred to as "a man after God's own heart." (Acts 13:22). One day I hope that my kids and maybe my closest friends might refer to me as a woman after God's own heart---what a legacy! But when you dig a little deeper, how on earth could someone like David be considered a "favorite" for God when he messed up royally more than once? Truth be told, David could have focused on the failure and allowed it to rule his life.
Yes, David made mistakes. He was definitely human.
He struggled with depression. A large number of the psalms he penned, starting with the 6th, specifically addressed struggles within and without.
He was an adulterer. In 2 Samuel 11 chronicles how David saw Bathsheba, invited her to the palace and slept with a married woman. Then...
In an attempt to cover up his adultery, he planned and insured a murder. In the same chapter, when Bathsheba sent word to David that she was pregnant (her husband Uriah had been away at war), David instructed that Uriah be sent to the very front of the battle and the troops around him withdraw. Sounds like murder and manipulation to me. Sounds like original sin: seeing something you want and manipulating people and circumstances to insure your needs are met.
HOW on earth could this man be called a favorite, one whom God loved and cherished above others? Yes, David was called at an early age. He followed God and served King Saul, always choosing the high road despite Saul's attempts to pursue and murder him. God honored that early calling and David became King over Israel. He even overcame conspiracies from his sons who plotted to overthrow him. But somewhere along the way, David got comfortable. And he succombed to original sin: "it's all about me and what I want."
Enter Nathan, Prophet and Pastor to the King. He is not here to pat David and the back and give him "atta-boys". No, Nathan was there to deliver God's word that David had pure and simple MESSED UP: and while the King thought it was secret, it was not. How many times have I done things in my younger years thinking, "it will never make a difference.....no one will ever find out." Character is who you are in the smallest of tasks, especially when you think no one is looking. When you think no one will find out.

In so doing, you will find the same forgiveness that countless others have received. When you observe the depth of love and forgiveness God offers to you, you will see why David was a man after God's heart.