2 Then the king proceeded to The Temple of God, bringing everyone in his train - priests and prophets and people ranging from the famous to the unknown. Then he read out publicly everything written in the Book of the Covenant that was found in The Temple of God. 3 The king stood by the pillar and before God solemnly committed them all to the covenant: to follow God believingly and obediently; to follow his instructions, heart and soul, on what to believe and do; to put into practice the entire covenant, all that was written in the book. The people stood in affirmation; their commitment was unanimous.

Matthew Henry's Commentary on 2 Kings 23:2-3

Commentary on 2 Kings 23:1-3

(Read 2 Kings 23:1-3)

Josiah had received a message from God, that there was no preventing the ruin of Jerusalem, but that he should only deliver his own soul; yet he does his duty, and leaves the event to God. He engaged the people in the most solemn manner to abolish idolatry, and to serve God in righteousness and true holiness. Though most were formal or hypocritical herein, yet much outward wickedness would be prevented, and they were accountable to God for their own conduct.