Jeremiah 37:21mattarah
Then King Zedekiah gave commandment, and they committed Jeremiah to the court of the guardhouse and gave him a loaf of bread daily from the bakers' street, until all the bread in the city was gone. So Jeremiah remained in the court of the guardhouse.
King Zedekiah confines Jeremiah in the guardhouse court, with daily bread.
Jeremiah 39:14mattarah
they even sent and took Jeremiah out of the court of the guardhouse and entrusted him to Gedaliah, the son of Ahikam, the son of Shaphan, to take him home. So he stayed among the people.
After the city falls, Jeremiah is released from the guardhouse.