2 Kings 23:29

23:29 During Josiah’s reign Pharaoh Necho king of Egypt marched toward the Euphrates River to help the king of Assyria. King Josiah marched out to fight him, but Necho killed him at Megiddo when he saw him.

2 Kings 23:33-34

23:33 Pharaoh Necho imprisoned him in Riblah in the land of Hamath and prevented him from ruling in Jerusalem. He imposed on the land a special tax of one hundred talents of silver and a talent of gold. 23:34 Pharaoh Necho made Josiah’s son Eliakim king in Josiah’s place, and changed his name to Jehoiakim. He took Jehoahaz to Egypt, where he died.