Then the LORD gave this message to Jeremiah:
"This is what the LORD, the God of Israel, says: Tell the king of Judah, who sent you to ask me what is going to happen, that 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
The LORD says: Do not fool yourselves 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!"
When the Babylonian army left Jerusalem because of Pharaoh's approaching army,
Jeremiah started to leave the city on his way to the land of Benjamin, to see the property he had bought.
But as he was walking through the Benjamin Gate, a sentry arrested him and said, "You are defecting to the Babylonians!" The sentry making the arrest was Irijah son of Shelemiah and grandson of Hananiah.
"That's not true!" Jeremiah protested. "I had no intention of doing any such thing." But Irijah wouldn't listen, and he took Jeremiah before the officials.
They were furious with Jeremiah and had him flogged and imprisoned in the house of Jonathan the secretary. Jonathan's house had been converted into a prison.
Jeremiah was put into a dungeon cell, where he remained for many days.