Meanwhile, the army of Pharaoh had come out of Egypt; and when the Chaldeans who were besieging Jerusalem heard news of them, they withdrew from Jerusalem.
Then the word of the Lord came to the prophet Jeremiah:
Thus says the Lord, God of Israel: This is what the two of you shall say to the king of Judah, who sent you to me to inquire of me: Pharaoh's army, which set out to help you, is going to return to its own land, to Egypt.
And the Chaldeans shall return and fight against this city; they shall take it and burn it with fire.
Thus says the Lord: Do not deceive yourselves, saying, "The Chaldeans will surely go away from us," for they will not go away.
Even if you defeated the whole army of Chaldeans who are fighting against you, and there remained of them only wounded men in their tents, they would rise up and burn this city with fire.
Now when the Chaldean army had withdrawn from Jerusalem at the approach of Pharaoh's army,
Jeremiah set out from Jerusalem to go to the land of Benjamin to receive his share of property among the people there.
References for Jeremiah 37:12
When he reached the Benjamin Gate, a sentinel there named Irijah son of Shelemiah son of Hananiah arrested the prophet Jeremiah saying, "You are deserting to the Chaldeans."
And Jeremiah said, "That is a lie; I am not deserting to the Chaldeans." But Irijah would not listen to him, and arrested Jeremiah and brought him to the officials.
The officials were enraged at Jeremiah, and they beat him and imprisoned him in the house of the secretary Jonathan, for it had been made a prison.