Jeremiah 38:28 NIV

28 And Jeremiah remained in the courtyard of the guard1 until the day Jerusalem was captured.

References for Jeremiah 38:28