In 2 Chronicles 32:31, we come across an interesting verse that seems to tell us that God has to test King Hezekiah’s heart to find out what is really there.
The background is that Hezekiah was sick, near to death. He was restored to health, then became proud in his heart, was threatened with wrath, then repented. God withheld his wrath from Judah after Hezekiah’s repentance. However, Hezekiah then accumulated great riches and honor and became very proud with his achievements. An envoy from Babylon paid Hezekiah a visit. He foolishly showed them all his riches and cities. He told Isaiah, “There is nothing in my storehouses that I did not show them” (Isa. 39:4b).
In 2 Chronicles 32, verse 31 says, “God left him to himself, in order to test him and to know all that was in his heart.” Does God really have to test people to know their hearts? Surely this can’t be the case, because the Bible clearly teaches otherwise and we know that the Bible does not, nor cannot, contradict itself.
Psalm 44:21 says, “For God knows the secrets of the heart.” Psalm 139:2, 4 says, “You discern my thoughts from afar…Even before a word is on my tongue, behold, O LORD, you know it altogether.” Jesus, in Mark 2:8, shows that he knew the hearts of the Pharisees, “And immediately Jesus, perceiving in his spirit that they thus questioned within themselves, said to them, ‘Why do you question these things in your hearts?’” Further, Acts 1:24 says, “And they prayed and said, ‘You, Lord, who know the hearts of all, show which one of these two you have chosen.’”
So what does it mean that God wanted to know what was in Hezekiah’s heart? It means that God desired for Hezekiah’s heart to produce evidence of internal obedience instead of external religious allegiance. God tests us, not to prove our faith to him, for he already knows the outcome of everything. He tests us to discipline us, and so that we might have an opportunity to depend on and obey him.
For if God didn’t know what’s in our hearts, it could be argued that he is no different than human beings. Let’s praise God for his supreme knowledge of all, even our deepest heart-thoughts and motives.