Neco sent messengers to Josiah saying, "What do we have against each other, O king of Judah? I haven't come to fight against you but against the country with whom I'm at war. God commanded me to hurry, so don't get in my way; you'll only interfere with God, who is on my side in this, and he'll destroy you."
But Josiah was spoiling for a fight and wouldn't listen to a thing Neco said (in actuality it was God who said it). Though King Josiah disguised himself when they met on the plain of Megiddo,
archers shot him anyway. The king said to his servants, "Get me out of here - I'm badly wounded."
So his servants took him out of his chariot and laid him down in an ambulance chariot and drove him back to Jerusalem. He died there and was buried in the family cemetery. Everybody in Judah and Jerusalem attended the funeral.
Jeremiah composed an anthem of lament for Josiah. The anthem is still sung by the choirs of Israel to this day. The anthem is written in the Laments.
The rest of the history of Josiah, his exemplary and devout life, conformed to The Revelation of God.
The whole story, from start to finish, is written in the Royal Annals of the Kings of Israel and Judah.