And Jeremiah lamented for Josiah: and all the singing men and the singing women spoke of Josiah in their lamentations to this day, and made them an ordinance in Israel: and, behold, they are written in the lamentations.
Read Chapter 35
Jerome
AD 420
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. - "Letter 133.13"
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.’ ” - "Against the Pelagians 2.22"