"Suddenly 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. The 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." NIV translation
I must say that the events described in this chapter would get my attention. God caused an earthquake which would explain the doors coming open but that would not explain the chains coming undone. We see that the jailer was going to kill himself because, if the prisoners had escaped, he would be killed anyway.
"But Paul shouted, 'Don't harm yourself! We are all here!' The jailer called for lights, rushed in and fell trembling before Paul and Silas. He then brought them out and asked, 'Sirs, what must I do to be saved?' They replied, 'Believe in the Lord Jesus, and you will be saved - you and your household.' Then they spoke the word of the Lord to him and to all the others in his house." NIV translation
Now, we see that all of what Paul and Silas went through had a "kingdom purpose" which was to bring the jailer and his family to a saving faith in Jesus Christ. The next time you face a difficult situation, stop and look for the people that God is using your situation to reach for the kingdom.
"At that hour of the night the jailer took them and washed their wounds; then immediately he and all his household were baptized. The jailer brought them into his house and set a meal before them; he was filled with joy because he had come to believe in God - he and his whole household." NIV translation
Once again, we see the pattern of a new believer immediately being baptized and also demonstrating hospitality. We also see that this is a result of the joy that he has from his faith and not as a means to be saved. It is a reminder that real faith is followed by real action and an attitude of service.