Hezekiah and the people living in Jerusalem humbled themselves when they realized they had become conceited. So the Lord didn’t vent his anger on them during Hezekiah’s time.
His prayer and how God accepted it are written in the records of Hozai. The things he did before he humbled himself are also written there. This includes all his sins and unfaithfulness and the places where he built illegal worship sites and set up idols and poles dedicated to the goddess Asherah.
But Josiah would not stop his attack. He disguised himself as he went into battle. He refused to listen to Neco’s words, which came from God, and he went to fight in the valley of Megiddo.
So Moses and Aaron went to Pharaoh and said to him, “This is what the Lord God of the Hebrews says: How long will you refuse to humble yourself in my presence? Let my people go to worship me.