And when He had removed him, He raised up for them David as king, to whom also He gave testimony and said, ‘I have found David the son of Jesse, a man after My own heart, who will do all My will.’ (Acts 13:22, NKJV)
What an extraordinary blessing for God to identify David as “a man after My own heart.” God did not describe David this way because he was sinless (far from it), but because David gave his heart to God and to His purposes. He loved the Lord with all His heart, soul, mind and strength (Mark 12:30). This kind of heart prepared David to do all of God’s will. When David sinned, he learned some hard lessons. He learned you cannot hide your sins from God (Psalm 32:3-5). He learned the painful consequences of sin (2 Samuel 12:11-14). David’s heart allowed him to learn the lessons. When his sins were laid before him, David did not become defensive. He did not blame others. He took responsibility, he repented, and he remained faithful to the Lord (Psalm 51). None of us are without sin. How we acknowledge our sin and remedy it shows whether or not we are people after God’s own heart, who do all of His will.