22 The crowd joined in attacking them, and the magistrates tore the garments off them and gave orders to beat them with rods. 23 And when they had inflicted many blows upon them, they threw them into prison, ordering the jailer to keep them safely. 24 Having received this order, he put them into the inner prison and fastened their feet in the stocks.
25 About midnight Paul and Silas were praying and singing hymns to God, and the prisoners were listening to them, 26 and suddenly there was a great earthquake, so that the foundations of the prison were shaken. And immediately all the doors were opened, and everyone's bonds were unfastened. 27 When the jailer woke and saw that the prison doors were open, he drew his sword and was about to kill himself, supposing that the prisoners had escaped. 28 But Paul cried with a loud voice, “Do not harm yourself, for we are all here.” (ESV)