Jeremiah 38:28 NLT

28 And Jeremiah remained a prisoner in the courtyard of the guard until the day Jerusalem was captured.