Can you imagine how they must have been hurting? Their feet were put into stocks and they could hardly move. They were bruised and beaten, but, Praise God, they were not defeated.
At midnight, when most people in their situation would be complaining, Paul and Silas started singing praises to God. They didn't just sing under their breath, because the Word says that the other prisoners heard them.
What an example of complete trust in God. God heard their praises and came to their aid. He sent a great earthquake and all the prison doors flew open, and all the prisoners were set free. Paul and Silas could have escaped and ran away, but because they stayed and witnessed, the jailer and his whole family got saved. Glory to God!
Just as God used Paul and Silas in prison, He can use you and I today. All we have to do is stop grumbling about our situations and see how we can glorify God in them.