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, charging the jailer to keep them safely. 24 Having received this charge, he put them into the inner prison and fastened their feet in the stocks.
25 But 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 every one's fetters 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." 29 And he called for lights and rushed in, and trembling with fear he fell down before Paul and Silas, 30 and brought them out and said, "Men, what must I do to be saved?" 31 And they said, "Believe in the Lord Jesus, and you will be saved, you and your household." 32 And they spoke the word of the Lord to him and to all that were in his house. 33 And he took them the same hour of the night, and washed their wounds, and he was baptized at once, with all his family. 34 Then he brought them up into his house, and set food before them; and he rejoiced with all his household that he had believed in God.
35 But when it was day, the magistrates sent the police, saying, "Let those men go." 36 And the jailer reported the words to Paul, saying, "The magistrates have sent to let you go; now therefore come out and go in peace." 37 But Paul said to them, "They have beaten us publicly, uncondemned, men who are Roman citizens, and have thrown us into prison; and do they now cast us out secretly? No! let them come themselves and take us out." 38 The police reported these words to the magistrates, and they were afraid when they heard that they were Roman citizens; 39 so they came and apologized to them. And they took them out and asked them to leave the city. 40 So they went out of the prison, and visited Lydia; and when they had seen the brethren, they exhorted them and departed.