2 Kings 23:29-30 MSG

29 Josiah's death came about when Pharaoh Neco king of Egypt marched out to join forces with the king of Assyria at the Euphrates River. When King Josiah intercepted him at the Plain of Megiddo, Neco killed him.
30 Josiah's servants took his body in a chariot, returned him to Jerusalem, and buried him in his own tomb. By popular choice Jehoahaz son of Josiah was anointed and succeeded his father as king.