Paul and Silas were thrown into prison for doing a good thing, casting a demon out of a slave girl. Not only were they thrown into prison they were beaten with many blows of rods. Then they had their feet put in stocks and were kept in the inner prison so they could not escape.
Their reaction was to pray and to praise God out loud. Loud enough the other prisoners heard them. Then an earthquake happened and all the bonds fell off the prisoners and the doors were all opened. But they did not run away instead they stopped the jailer from killing himself in fear. That jailer then wanted to know Jesus. He took Paul and Silas home, washed their wounds and listened to them. He and his entire household were saved and baptized.
I love this story. What seemed like defeat and helplessness turned into a great victory as the Holy Spirit enabled Paul and Silas to be witnesses to the one who held them in jail. What could have been time for a pity party and defeat was a midnight revival- prayer meeting and worship time! God took what was evil and made it an opportunity to show His love, power, and salvation!
As we die to ourselves and live in the power of the Holy Spirit, God will be glorified in every situation! His goodness will always prevail!