Jeremiah 32:2

32:2 Now at that time, the armies of the king of Babylon were besieging Jerusalem. The prophet Jeremiah was confined in the courtyard of the guardhouse attached to the royal palace of Judah.