Treasury of Scripture Knowledge
for then the king of Babylon's army besieged Jerusalem; and Jeremiah the prophet was shut up in the court of the guard, which was in the king of Judah's house.
Then Zedekiah the king commanded that they should commit Jeremiah into the court of the guard and that they should give him daily a piece of bread out of the bakers' street until all the bread in the city was spent. Thus Jeremiah remained in the court of the guard.
So Jeremiah abode in the court of the guard until the day that Jerusalem was taken; and he was there when Jerusalem was taken.
2 Timothy 2:9
in which I suffer trouble, like unto an evil doer, even unto bonds; but the word of God is not bound.
And Jeremiah commanded Baruch, saying, I am shut up; I cannot go into the house of the LORD: