Quoting Commentary for II Kings 12:3

וַיַּ֨עַשׂ יְהוֹאָ֧שׁ הַיָּשָׁ֛ר בְּעֵינֵ֥י יְהוָ֖ה כָּל־יָמָ֑יו אֲשֶׁ֣ר הוֹרָ֔הוּ יְהוֹיָדָ֖ע הַכֹּהֵֽן׃

And Jehoash did that which was right in the eyes of the LORD all his days wherein Jehoiada the priest instructed him.

Rashi

all the days of Jehoiada And in II Kings (12:3) it is written: “all his days, [he did] that which Jehoiada the priest instructed him,” but after he died, the officers of the king came to prostrate themselves to him and to deify him (below verse 17). In the midrash (Exod. Rabbah 8:2, Tan. Buber, Va’era) it is explained that, because he hid in the Holy of Holies and was not harmed, they said, “You are fit to be a god.”
Ask a RabbiBookmarkShareCopy