22 Nevertheless Josiah would not turn his face from him, but disguised himself, that he might fight with him, and hearkened not unto the words of Necho from the mouth of God, and came to fight in the valley of Megiddo.
[AD 420] Jerome on 2 Chronicles 35:22-25
Finally, Josiah is killed by Pharaoh, the king of Egypt, because he would not listen to the words of the Lord from the mouth of the prophet Jeremiah, or, as it is written in the Paralipomenon: “Josiah would not return but prepared to fight against him and did not listen to the words of Neco from the mouth of God.” And it is stated, “And he died and was buried in the monument of his ancestors. And all Judah and Jerusalem mourned for him, particularly Jeremiah, whose lamentations for Josiah all the singing men and singing women repeat to this day. And it became like a law in Israel: ‘Behold, it is found written in the Lamentations.’ ”

[AD 420] Jerome on 2 Chronicles 35:22-25
It is true that in the holy Scriptures many are called righteous, as Zachariah and Elizabeth, Job, Jehosaphat, Josiah, and many others who are mentioned in the sacred writings. Of this fact I shall, if God gives me grace, give a full explanation in the work that I have promised; in this letter it must suffice to say that they are called righteous, not because they are faultless but because their faults are eclipsed by their virtues. In fact Zachariah is punished with dumbness, Job is condemned out of his own mouth, and Jehoshaphat and Josiah who are beyond a doubt described as righteous are narrated to have done things displeasing to the Lord. The first aligned himself with the ungodly Ahab and brought on himself the rebuke of Micaiah; and the second, though forbidden by the word of the Lord spoken by Jeremiah, went against Pharaoh Neco, king of Egypt, and was killed by him.