22 A mob quickly formed against Paul and Silas, and the city officials ordered them stripped and beaten with wooden rods. 23 They were severely beaten, and then they were thrown into prison. The jailer was ordered to make sure they didn't escape. 24 So the jailer put them into the inner dungeon and clamped their feet in the stocks.
25 Around midnight Paul and Silas were praying and singing hymns to God, and the other prisoners were listening. 26 Suddenly, there was a massive earthquake, and the prison was shaken to its foundations. All the doors immediately flew open, and the chains of every prisoner fell off! 27 The jailer woke up to see the prison doors wide open. He assumed the prisoners had escaped, so he drew his sword to kill himself. 28 But Paul shouted to him, "Stop! Don't kill yourself! We are all here!" 29 The jailer called for lights and ran to the dungeon and fell down trembling before Paul and Silas. 30 Then he brought them out and asked, "Sirs, what must I do to be saved?" 31 They replied, "Believe in the Lord Jesus and you will be saved, along with everyone in your household." 32 And they shared the word of the Lord with him and with all who lived in his household. 33 Even at that hour of the night, the jailer cared for them and washed their wounds. Then he and everyone in his household were immediately baptized. 34 He brought them into his house and set a meal before them, and he and his entire household rejoiced because they all believed in God.
35 The next morning the city officials sent the police to tell the jailer, "Let those men go!" 36 So the jailer told Paul, "The city officials have said you and Silas are free to leave. Go in peace." 37 But Paul replied, "They have publicly beaten us without a trial and put us in prison-and we are Roman citizens. So now they want us to leave secretly? Certainly not! Let them come themselves to release us!" 38 When the police reported this, the city officials were alarmed to learn that Paul and Silas were Roman citizens. 39 So they came to the jail and apologized to them. Then they brought them out and begged them to leave the city. 40 When Paul and Silas left the prison, they returned to the home of Lydia. There they met with the believers and encouraged them once more. Then they left town.