Following the angel, Peter left the prison. However, he didn’t realize the angel had actually done all this. He thought he was seeing a vision.