22The crowd joined in the attack against Paul and Silas, and the magistrates ordered them to be stripped and beaten with rods. 23After they had been severely flogged, they were thrown into prison, and the jailer was commanded to guard them carefully.
24When he received these orders, he put them in the inner cell and fastened their feet in the stocks. 25About midnight Paul and Silas were praying and singing hymns to God, and the other prisoners were listening to them. 26Suddenly there was such a violent earthquake that the foundations of the prison were shaken. At once all the prison doors flew open, and everyone’s chains came loose. 27The jailer woke up, and when he saw the prison doors open, he drew his sword and was about to kill himself because he thought the prisoners had escaped.