1 Samuel 13:13-14 (ESV)
And Samuel said to Saul, “You have done foolishly. You have not kept the command of the Lord your God, with which he commanded you. For then the Lord would have established your kingdom over Israel forever. But now your kingdom shall not continue. The Lord has sought out a man after his own heart, and the Lord has commanded him to be prince over his people, because you have not kept what the Lord commanded you.”
Consider
Through the prophet Samuel, God called Saul’s successor—David—”a man after his own heart.” How could it be that David—a man of grievous sin and shattered relationships—found such honor in God’s eyes?