Zedekiah son of Josiah succeeded Jehoiachin son of Jehoiakim as the king of Judah. He was appointed by King Nebuchadnezzar of Babylon.
References for Jeremiah 37:1
But neither King Zedekiah nor his attendants nor the people who were left in the land listened to what the LORD said through Jeremiah.
Nevertheless, King Zedekiah sent Jehucal son of Shelemiah, and Zephaniah the priest, son of Maaseiah, to ask Jeremiah, “Please pray to the LORD our God for us.”
Jeremiah had not yet been imprisoned, so he could come and go among the people as he pleased.
At this time the army of Pharaoh Hophra of Egypt appeared at the southern border of Judah. When the Babylonian army heard about it, they withdrew from their siege of Jerusalem.
References for Jeremiah 37:5
Then the LORD gave this message to Jeremiah:
“This is what the LORD, the God of Israel, says: The king of Judah sent you to ask me what is going to happen. Tell him, ‘Pharaoh’s army is about to return to Egypt, though he came here to help you.
Then the Babylonians will come back and capture this city and burn it to the ground.’
References for Jeremiah 37:8
“This is what the LORD says: Do not fool yourselves into thinking that the Babylonians are gone for good. They aren’t!
Even if you were to destroy the entire Babylonian army, leaving only a handful of wounded survivors, they would still stagger from their tents and burn this city to the ground!”