22 Nevertheless Josiah would not turn his face from him, but disguised himself so that he might fight with him, and did not heed the words of Necho from the mouth of God. So he came to fight in the Valley of Megiddo. 23 And the archers shot King Josiah; and the king said to his servants, "Take me away, for I am severely wounded." 24 His servants therefore took him out of that chariot and put him in the second chariot that he had, and they brought him to Jerusalem. So he died, and was buried in one of the tombs of his fathers. And all Judah and Jerusalem mourned for Josiah. 25 Jeremiah also lamented for Josiah. And to this day all the singing men and the singing women speak of Josiah in their lamentations. They made it a custom in Israel; and indeed they are written in the Laments. 26 Now the rest of the acts of Josiah and his goodness, according to what was written in the Law of the Lord, 27 and his deeds from first to last, indeed they are written in the book of the kings of Israel and Judah.

Matthew Henry's Commentary on 2 Chronicles 35:22-27

Commentary on 2 Chronicles 35:20-27

(Read 2 Chronicles 35:20-27)

The Scripture does not condemn Josiah's conduct in opposing Pharaoh. Yet Josiah seems to deserve blame for not inquiring of the Lord after he was warned; his death might be a rebuke for his rashness, but it was a judgment on a hypocritical and wicked people. He that lives a life of repentance, faith, and obedience, cannot be affected by the sudden manner in which he is removed. The people lamented him. Many mourn over sufferings, who will not forsake the sins that caused God to send them. Yet this alone can turn away judgments. If we blame Josiah's conduct, we should be watchful, lest we be cut down in a way dishonourable to our profession.