They used the ropes to pull Jeremiah up and lift him out of the cistern. Then Jeremiah stayed in the courtyard of the prison.