2Ch 32:31 And so in the matter of the envoys of the princes of Babylon, who had been sent to him to inquire about the sign that had been done in the land, God left him to himself, in order to test him and to know all that was in his heart.
In 2 Chronicles 32:31 Hezekiah’s reign is at an end. God has saved him from death (verse 24) because he has prayed to God. But God still is not sure about his loyalty. Verse 25 and 26 describe this wavering. In verse 31, God tests Hezekiah to “know all that is in his heart”. God is setting up a situation to see how Hezekiah will act, presumably due to Hezekiah’s past fickle behavior. This is a fairly clear instance of nescience, God testing to know. This is of an individual and at the end of his life. He fails the test, as recorded by 2 Kings 20:12-13.