New International Version

Jeremiah 38:28 New International Version (NIV)

And Jeremiah remained in the courtyard of the guard until the day Jerusalem was captured. This is how Jerusalem was taken:

Jeremiah 38

Jeremiah 38:26-28