וַיַּ֨עַשׂ יְהוֹאָ֧שׁ הַיָּשָׁ֛ר בְּעֵינֵ֥י יְהוָ֖ה כָּל־יָמָ֑יו אֲשֶׁ֣ר הוֹרָ֔הוּ יְהוֹיָדָ֖ע הַכֹּהֵֽן׃
Joas fit toute sa vie ce qui plaît au Seigneur, conformément aux enseignements que lui avait donnés le prêtre Joïada.
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.”