22 So Hilkiah and those whom the king had told went to Huldah the prophetess, the wife of Shallum the son of Tokhath, the son of Hasrah, the keeper of the wardrobe (now she lived in Jerusalem in the Second Quarter); and they spoke to her regarding this. 23 She said to them, "Thus says the LORD, the God of Israel, 'Tell the man who sent you to Me, 24 thus says the LORD, "Behold, I am bringing evil on this place and on its inhabitants, even all the curses written in the book which they have read in the presence of the king of Judah. 25 "Because they have forsaken Me and have burned incense to other gods, that they might provoke Me to anger with all the works of their hands; therefore My wrath will be poured out on this place and it shall not be quenched."' 26 "But to the king of Judah who sent you to inquire of the LORD, thus you will say to him, 'Thus says the LORD God of Israel regarding the words which you have heard, 27 "Because your heart was tender and you humbled yourself before God when you heard His words against this place and against its inhabitants, and because you humbled yourself before Me, tore your clothes and wept before Me, I truly have heard you," declares the LORD. 28 "Behold, I will gather you to your fathers and you shall be gathered to your grave in peace, so your eyes will not see all the evil which I will bring on this place and on its inhabitants."'" And they brought back word to the king.
29 Then the king sent and gathered all the elders of Judah and Jerusalem. 30 The king went up to the house of the LORD and all the men of Judah, the inhabitants of Jerusalem, the priests, the Levites and all the people, from the greatest to the least; and he read in their hearing all the words of the book of the covenant which was found in the house of the LORD. 31 Then the king stood in his place and made a covenant before the LORD to walk after the LORD, and to keep His commandments and His testimonies and His statutes with all his heart and with all his soul, to perform the words of the covenant written in this book. 32 Moreover, he made all who were present in Jerusalem and Benjamin to stand with him. So the inhabitants of Jerusalem did according to the covenant of God, the God of their fathers. 33 Josiah removed all the abominations from all the lands belonging to the sons of Israel, and made all who were present in Israel to serve the LORD their God. Throughout his lifetime they did not turn from following the LORD God of their fathers.