Jeremiah 38:28
And Jeremiah remained in the courtyard of the guard until the day Jerusalem was captured.
Berean Standard Bible
So Jeremiah abode in the court of the prison until the day that Jerusalem was taken: and he was there when Jerusalem was taken.
So Jeremiah stayed in the court of the guard until the day that Jerusalem was taken.