We don’t expect God to align himself with people who end up defying some of the basic ethical teachings of the Bible. So it can be surprising to hear God reserve unusual praise for King David
In 1 Samuel 13:14 God tells Saul that his kingdom will not endure and that God has found a replacement. The prophet Samuel says, “The Lord has sought out a man after his own heart.” Though David leads with courage and humility for many years, his character is not flawless. Most casual readers of the Bible note that David’s primary failing was in committing adultery with Bathsheba and in orchestrating the murder of her husband in battle in order to mask his crime. So how can such a person be depicted in 1 Samuel and in Acts 13:22 as a man “after God’s own heart”?
The answer to this question lies in understanding what the phrase does not mean. God is speaking about the direction of the political, military, and moral leadership David will give to the nation as king. As the leader of the people, David typically lead God’s people in the direction God wanted them to go. God does not state that David was perfect. It was God himself who revealed to Nathan the prophet the secret sins that David had committed. In the sphere of his national leadership, God found a man whose heart and desires resonated with his own plan.
Since the fall of Adam and Eve, God recruits and uses imperfect people. When God affirms the faith or courage or trust of someone in the Bible, it is not the same as giving a blanket endorsement on all their choices.
God is fully aware of our deficiencies and our numerous sins. Yet in his grace he invites us to participate in his kingdom plan. His affirmation is real, but not a universal endorsement for all that we do. It’s humbling to know that the true God is willing to display that kind of kindness toward fickle and flawed people like ourselves.