After Paul and Silas expelled the demon from a girl in Philippi, they faced significant consequences. The girl's owners, angered by the loss of their source of income (as she had been a fortune-teller), seized Paul and Silas, dragged them before the authorities, and accused them of disturbing the city and promoting unlawful customs. As a result, Paul and Silas were beaten with rods and thrown into prison.
However, even in prison, they continued to pray and sing hymns to God. During the night, a violent earthquake shook the prison, opening the doors and loosening the prisoners' chains. The jailer, fearing that the prisoners had escaped, was about to take his own life, but Paul stopped him, assuring him that they were all still present. This incident led to the jailer's conversion and baptism, along with his household.
This account is found in Acts 16:16-34 in the New Testament.