28Now the rest of the acts of Josiah and all that he did, are they not written in the Book of the Chronicles of the Kings of Judah? 29In his days Pharaoh Neco king of Egypt went up to the king of Assyria to the river Euphrates. And King Josiah went to meet him, and when Pharaoh Neco saw him he killed him at Megiddo. 30His servants drove his body in a chariot from Megiddo, and brought him to Jerusalem and buried him in his own tomb.
2 Kings 23:28-30
Josiah Dies in Battle of Megiddo
20After all this, when Josiah had set the temple in order, Neco king of Egypt came up to make war at Carchemish on the Euphrates, and Josiah went out to engage him. 21But Neco sent messengers to him, saying, “What have we to do with each other, O King of Judah? I am not coming against you today but against the house with which I am at war, and God has ordered me to hurry. Stop for your own sake from interfering with God who is with me, so that He will not destroy you.” 22However, Josiah would not turn away from him, but disguised himself in order to make war with him; nor did he listen to the words of Neco from the mouth of God, but came to make war on the plain of Megiddo. 23The archers shot King Josiah, and the king said to his servants, “Take me away, for I am badly wounded.” 24So his servants took him out of the chariot and carried him in the second chariot which he had, and brought him to Jerusalem where he died and was buried in the tombs of his fathers. All Judah and Jerusalem mourned for Josiah. 25Then Jeremiah chanted a lament for Josiah. And all the male and female singers speak about Josiah in their lamentations to this day. And they made them an ordinance in Israel; behold, they are also written in the Lamentations. 26Now the rest of the acts of Josiah and his deeds of devotion as written in the law of YHVH, 27and his acts, first to last, behold, they are written in the Book of the Kings of Israel and Judah.