Josiah was 8 years old when he became king, and he ruled for thirty-one years in Jerusalem.
He did what was right in the LORD's eyes and walked in the ways of his ancestor David, not deviating from it even a bit to the right or left.
In the eighth year of his rule, while he was just a boy, he began to seek the God of his ancestor David, and in the twelfth year he began purifying Judah and Jerusalem of the shrines, the sacred poles, idols, and images.
Under his supervision, the altars for the Baals were torn down, and the incense altars that were above them were smashed. He broke up the sacred poles, idols, and images, grinding them to dust and scattering them over the graves of those who had sacrificed to them.
He burned the bones of the priests on their altars, purifying Judah and Jerusalem.
In the cities of Manasseh, Ephraim, and Simeon, all the way up to Naphtali, he removed their temples,
tore down the altars and sacred poles, ground the idols to dust, and smashed all the incense altars throughout the land of Israel. Then Josiah returned to Jerusalem.
In the eighteenth year of his rule, after he had purified the land and the temple, Josiah sent Azaliah's son Shaphan, Maaseiah the mayor of the city, and Joahaz's son Joah the secretary to repair the LORD his God's temple.
When they came to the high priest Hilkiah, they delivered the money that had been collected in God's temple by the levitical gatekeepers from Manasseh, Ephraim, and the rest of Israel, as well as from Judah, Benjamin, and the residents of Jerusalem.
They handed it over to the supervisors in charge of the LORD's temple, who in turn paid it to those working on, repairing, and restoring the LORD's temple.
They then gave it to the carpenters and the builders to pay for quarried stone and lumber for rafters and beams in the buildings the kings of Judah had neglected.
The men worked conscientiously under the supervision of Jahath and Obadiah, who were Levites descended from Merari, and Zechariah and Meshullam from the Kohathites. The Levites, all of whom were accomplished musicians,
were also in charge of the laborers and all the workers, no matter what their jobs, while some of the Levites served as scribes, officials, and guards.
While they were bringing out the money that had been brought into the LORD's temple, Hilkiah the priest found the Instruction scroll that the LORD had given through Moses.
Hilkiah told the secretary Shaphan, "I have found the Instruction scroll in the LORD's temple." Then Hilkiah turned the scroll over to Shaphan,
who brought it to the king with this report: "Your servants are doing everything you've asked them to do.
They have released the money that was found in the LORD's temple and have handed it over to the supervisors and the workers."
Then the secretary Shaphan told the king, "The priest Hilkiah has given me a scroll," and he read it out loud before the king.
As soon as the king heard what the Instruction scroll said, he ripped his clothes.
The king ordered Hilkiah, Shaphan's son Ahikam, Micah's son Abdon, the secretary Shaphan, and the royal officer Asaiah as follows:
"Go and ask the LORD on my behalf, and on behalf of those who still remain in Israel and Judah, concerning the contents of this scroll that has been found. The LORD must be furious with us because our ancestors failed to obey the LORD's word and do everything written in this scroll."
So Hilkiah and the royal officials went to the prophetess Huldah. She was married to Shallum, Tokhath's son and Hasrah's grandson, who was in charge of the wardrobe. She lived in Jerusalem in the second district. When they spoke to her,
she replied, "This is what the LORD, Israel's God, says: Tell this to the man who sent you to me:
This is what the LORD says: I am about to bring disaster on this place and its citizens—all the curses written in the scroll that they have read to Judah's king.
My anger burns against this place, never to be quenched, because they've deserted me and have burned incense to other gods, angering me by everything they have done.
But also say this to the king of Judah, who sent you to question the LORD: This is what the LORD, Israel's God, says about the message you've just heard:
Because your heart was broken and you submitted before the LORD when you heard what he said against this place and its citizens, and because you ripped your clothes and cried before me, I have listened to you, declares the LORD.
I will gather you to your ancestors, and you will go to your grave in peace. You won't experience the disaster I am about to bring on this place and its citizens." When they reported Huldah's words to the king,
the king sent a message and gathered together all the elders of Judah and Jerusalem.
Then the king went up to the LORD's temple, together with all the people of Judah and all the citizens of Jerusalem, the priests and the Levites, and all the people, young and old alike. There the king read out loud all the words of the covenant scroll that had been found in the LORD's temple.
The king stood in his place and made a covenant with the LORD that he would follow the LORD by keeping his commandments, his instructions, and his regulations with all his heart and all his being, in order to fulfill the words of the covenant that were written in this scroll.
Then he made everyone found in Jerusalem and Benjamin join in a similar promise. The citizens of Jerusalem lived according to the covenant made with God, the God of their ancestors.
Josiah got rid of all the detestable idols from all the regions that belonged to the Israelites, and he made everyone who lived in Israel serve the LORD their God. As long as Josiah lived, they didn't turn away from following the LORD God of their ancestors.