5 He did away with the idolatrous priests, who had been appointed by the previous kings of Judah, for they had offered sacrifices at the pagan shrines throughout Judah and even in the vicinity of Jerusalem. They had also offered sacrifices to Baal, and to the sun, the moon, the constellations, and to all the powers of the heavens. 6 The king removed the Asherah pole from the Lord 's Temple and took it outside Jerusalem to the Kidron Valley, where he burned it. Then he ground the ashes of the pole to dust and threw the dust over the graves of the people. 7 He also tore down the living quarters of the male and female shrine prostitutes that were inside the Temple of the Lord, where the women wove coverings for the Asherah pole. 8 Josiah brought to Jerusalem all the priests who were living in other towns of Judah. He also defiled the pagan shrines, where they had offered sacrifices-all the way from Geba to Beersheba. He destroyed the shrines at the entrance to the gate of Joshua, the governor of Jerusalem. This gate was located to the left of the city gate as one enters the city. 9 The priests who had served at the pagan shrines were not allowed to serve at the Lord 's altar in Jerusalem, but they were allowed to eat unleavened bread with the other priests.

Matthew Henry's Commentary on 2 Kings 23:5-9

Commentary on 2 Kings 23:4-14

(Read 2 Kings 23:4-14)

What abundance of wickedness in Judah and Jerusalem! One would not have believed it possible, that in Judah, where God was known, in Israel, where his name was great, in Salem, in Zion, where his dwelling-place was, such abominations should be found. Josiah had reigned eighteen years, and had himself set the people a good example, and kept up religion according to the Divine law; yet, when he came to search for idolatry, the depth and extent were very great. Both common history, and the records of God's word, teach, that all the real godliness or goodness ever found on earth, is derived from the new-creating Spirit of Jesus Christ.