II Chronicles 25:16 Midrash

וַיְהִ֣י ׀ בְּדַבְּר֣וֹ אֵלָ֗יו וַיֹּ֤אמֶר לוֹ֙ הַלְיוֹעֵ֤ץ לַמֶּ֙לֶךְ֙ נְתַנּ֔וּךָ חֲדַל־לְךָ֖ לָ֣מָּה יַכּ֑וּךָ וַיֶּחְדַּ֣ל הַנָּבִ֗יא וַיֹּ֙אמֶר֙ יָדַ֗עְתִּי כִּֽי־יָעַ֤ץ אֱלֹהִים֙ לְהַשְׁחִיתֶ֔ךָ כִּֽי־עָשִׂ֣יתָ זֹּ֔את וְלֹ֥א שָׁמַ֖עְתָּ לַעֲצָתִֽי׃ (פ)

And it came to pass, as he talked with him, that [the king] said unto him: ‘Have we made thee of the king’s counsel? forbear; why shouldest thou be smitten?’ Then the prophet forbore, and said: ‘I know that God hath determined to destroy thee, because thou hast done this, and hast not hearkened unto my counsel.’

Read midrashic interpretation of II Chronicles 25:16: and classical rabbinic exegesis.