2Kgs 23:29-34

29In his days Pharaoh Neco king of Egypt went up to the king of Assyria to the river Euphrates. King Josiah went to meet him; but when Pharaoh Neco met him at Megiddo, he killed him.30His servants carried him dead in a chariot from Megiddo, brought him to Jerusalem, and buried him in his own tomb. The people of the land took Jehoahaz son of Josiah, anointed him, and made him king in place of his father.Reign and Captivity of Jehoahaz 31Jehoahaz was twenty-three years old when he began to reign; he reigned three months in Jerusalem. His mother's name was Hamutal daughter of Jeremiah of Libnah.32He did what was evil in the sight of the Lord, just as his ancestors had done.33Pharaoh Neco confined him at Riblah in the land of Hamath, so that he might not reign in Jerusalem, and imposed tribute on the land of one hundred talents of silver and a talent of gold.34Pharaoh Neco made Eliakim son of Josiah king in place of his father Josiah, and changed his name to Jehoiakim. But he took Jehoahaz away; he came to Egypt, and died there.