So the king stood by the pillar and made a covenant before the LORD to follow the LORD and to keep His commandments, decrees, and statutes with all his heart and all his soul, and to carry out the words of the covenant that were written in this book. And all the people entered into the covenant.
Josiah had received a message from God that there was no preventing the ruin of Jerusalem, but that he should deliver only his own soul; yet he did not therefore sit down in despair, and resolve to do nothing for his country because he could not do all he would. No, he would do his duty, and then leave the event to God.
Commenting on 2 Kings 23:1-3
And the king commanded Hilkiah the high priest, and the priests of the second order,.... Or the second course of the priests; the course of Jedaiah, Ch1 24:7 as some think; or rather, the two chief priests next to the high priest, who were of the line both of Eleazar and Ithamar; though the Targum interprets it of the Sagan of the priests, a deputy...
all the people stood to the covenant--that is, they agreed to the proposals made; they assented to what was required of them.