After arresting him, he put him in prison, handing him over to be guarded by four squads of four soldiers each. Herod intended to bring him out for public trial after the Passover.1
So Peter was kept in prison, but the church was earnestly praying to God for him.2
The night before Herod was to bring him to trial, Peter was sleeping between two soldiers, bound with two chains,3 and sentries stood guard at the entrance.
Suddenly an angel4 of the Lord appeared and a light shone in the cell. He struck Peter on the side and woke him up. "Quick, get up!" he said, and the chains fell off Peter's wrists.5
Then the angel said to him, "Put on your clothes and sandals." And Peter did so. "Wrap your cloak around you and follow me," the angel told him.
Peter followed him out of the prison, but he had no idea that what the angel was doing was really happening; he thought he was seeing a vision.6
They passed the first and second guards and came to the iron gate leading to the city. It opened for them by itself,7 and they went through it. When they had walked the length of one street, suddenly the angel left him.
References for Acts 12:10
Then Peter came to himself8 and said, "Now I know without a doubt that the Lord sent his angel and rescued me9 from Herod's clutches and from everything the Jewish people were anticipating."
References for Acts 12:11
When this had dawned on him, he went to the house of Mary the mother of John, also called Mark,10 where many people had gathered and were praying.11
References for Acts 12:12
Peter knocked at the outer entrance, and a servant girl named Rhoda came to answer the door.12
References for Acts 12:13
When she recognized Peter's voice, she was so overjoyed13 she ran back without opening it and exclaimed, "Peter is at the door!"
References for Acts 12:14