20 After Josiah had finished restoring the Temple, King Neco of Egypt led his army up from Egypt to do battle at Carchemish on the Euphrates River, and Josiah and his army marched out to fight him. 21 But King Neco sent messengers to Josiah with this message: "What do you want with me, king of Judah? I have no quarrel with you today! I am on my way to fight another nation, and God has told me to hurry! Do not interfere with God, who is with me, or he will destroy you." 22 But Josiah refused to listen to Neco, to whom God had indeed spoken, and he would not turn back. Instead, he disguised himself and led his army into battle on the plain of Megiddo. 23 But the enemy archers hit King Josiah with their arrows and wounded him. He cried out to his men, "Take me from the battle, for I am badly wounded!" 24 So they lifted Josiah out of his chariot and placed him in another chariot. Then they brought him back to Jerusalem, where he died. He was buried there in the royal cemetery. And all Judah and Jerusalem mourned for him.
Matthew Henry's Commentary on 2 Chronicles 35:20-24
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.