5 Peter, therefore, indeed, was kept in the prison, and fervent prayer was being made by the assembly unto God for him,

Peter Delivered from Prison

6 and when Herod was about to bring him forth, the same night was Peter sleeping between two soldiers, having been bound with two chains, guards also before the door were keeping the prison, 7 and lo, a messenger of the Lord stood by, and a light shone in the buildings, and having smitten Peter on the side, he raised him up, saying, 'Rise in haste,' and his chains fell from off 'his' hands. 8 The messenger also said to him, 'Gird thyself, and bind on thy sandals;' and he did so; and he saith to him, 'Put thy garment round and be following me;' 9 and having gone forth, he was following him, and he knew not that it is true that which is done through the messenger, and was thinking he saw a vision, 10 and having passed through a first ward, and a second, they came unto the iron gate that is leading to the city, which of its own accord did open to them, and having gone forth, they went on through one street, and immediately the messenger departed from him.

Matthew Henry's Commentary on Acts 12:5-10

Commentary on Acts 12:1-5

(Read Acts 12:1-5)

James was one of the sons of Zebedee, whom Christ told that they should drink of the cup that he was to drink of, and be baptized with the baptism that he was to be baptized with, Matthew 20:23. Now the words of Christ were made good in him; and if we suffer with Christ, we shall reign with him. Herod imprisoned Peter: the way of persecution, as of other sins, is downhill; when men are in it, they cannot easily stop. Those make themselves an easy prey to Satan, who make it their business to please men. Thus James finished his course. But Peter, being designed for further services, was safe; though he seemed now marked out for a speedy sacrifice. We that live in a cold, prayerless generation, can hardly form an idea of the earnestness of these holy men of old. But if the Lord should bring on the church an awful persecution like this of Herod, the faithful in Christ would learn what soul-felt prayer is.

Commentary on Acts 12:6-11

(Read Acts 12:6-11)

A peaceful conscience, a lively hope, and the consolations of the Holy Spirit, can keep men calm in the full prospect of death; even those very persons who have been most distracted with terrors on that account. God's time to help, is when things are brought to the last extremity. Peter was assured that the Lord would cause this trial to end in the way that should be most for his glory. Those who are delivered out of spiritual imprisonment must follow their Deliverer, like the Israelites when they went out of the house of bondage. They knew not whither they went, but knew whom they followed. When God will work salvation for his people, all difficulties in their way will be overcome, even gates of iron are made to open of their own accord. This deliverance of Peter represents our redemption by Christ, which not only proclaims liberty to the captives, but brings them out of the prison-house. Peter, when he recollected himself, perceived what great things God had done for him. Thus souls delivered out of spiritual bondage, are not at first aware what God has wrought in them; many have the truth of grace, that want evidence of it. But when the Comforter comes, whom the Father will send, sooner or later, he will let them know what a blessed change is wrought.