29 While Josiah was king, Pharaoh Necho king of Egypt went up to the Euphrates River to help the king of Assyria. King Josiah marched out to meet him in battle, but Necho faced him and killed him at Megiddo.

Matthew Henry's Commentary on 2 Kings 23:29

Commentary on 2 Kings 23:25-30

(Read 2 Kings 23:25-30)

Upon reading these verses, we must say, Lord, though thy righteousness be as the great mountains, evident, plainly to be seen, and past dispute; yet thy judgments are a great deep, unfathomable, and past finding out. The reforming king is cut off in the midst of his usefulness, in mercy to him, that he might not see the evil coming upon his kingdom: but in wrath to his people, for his death was an inlet to their desolations.

22 Josiah, however, would not turn away from him, but disguised himself to engage him in battle. He would not listen to what Necho had said at God's command but went to fight him on the plain of Megiddo. 23 Archers shot King Josiah, and he told his officers, "Take me away; I am badly wounded." 24 So they took him out of his chariot, put him in his other chariot and brought him to Jerusalem, where he died. He was buried in the tombs of his ancestors, and all Judah and Jerusalem mourned for him. 25 Jeremiah composed laments for Josiah, and to this day all the male and female singers commemorate Josiah in the laments. These became a tradition in Israel and are written in the Laments. 26 The other events of Josiah's reign and his acts of devotion in accordance with what is written in the Law of the Lord- 27 all the events, from beginning to end, 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.