Accused and tried in a Kangaroo court, whipped many times, beaten, thrown into prison, put into stocks on the floor of the inner prison - ALL that and probably more Paul and Silas endured in a first century Philippian jail! They had every reason to have a serious pity party!
SO what does the historical account of the the incident in Acts 16 describe? They were singing; the other prisoners were listening! Then there was an earthquake so every thing was shaking with enough force to open the doors of the prison and loose the chains and stocks.
Singing in jail and sleep deprived at midnight? WOW!
Lord, give me a heart that will sing praise to you after a beating in prison at sleepless midnight! (John Piper tweet)