King Yoshiyahu's Reforms and the Discovery of the Torah Scroll
Question
Answer
Thank you for your inquiry.
King Yoshiyahu ascended to the throne at the tender age of eight, succeeding a lineage of monarchs who had not only neglected the temple but had desecrated it with idol worship. At the age of 18, Yoshiyahu initiated significant repairs to the temple. It was during these renovations that a sacred scroll was discovered in the Holy of Holies. Intriguingly, the scroll was opened to a passage not at the beginning of Genesis but near the end of Deuteronomy 28:36, which reads: יולך ה' אתך ואת מלכך אשר תקים עליך אל גוי אשר לא ידעת.
Realizing the gravity of the warning, Yoshiyahu tore his garments, a gesture reflecting his recognition of God's immense displeasure. He responded decisively, purging the temple of all idols and restoring its sanctity and purity. Yoshiyahu merited to die peacefully yet despite his profound repentance and efforts to amend the past, Yoshiyahu was destined to die peacefully since he was a tsadik before the full consequences of prior transgressions — which included punishment and exile — were realized.
Thus, while Yoshiyahu was indeed a righteous king, a tzaddik, there was still retribution for the sins of the past.
Wishing you well.
Source
Book of Kings,2 chapters 22-23