Acts 16:16-25 NIV
Once when we were going to the place of prayer, we were met by a female slave who had a spirit by which she predicted the future. She earned a great deal of money for her owners by fortune-telling. She followed Paul and the rest of us, shouting, “These men are servants of the Most High God, who are telling you the way to be saved.” She kept this up for many days. Finally Paul became so annoyed that he turned around and said to the spirit, “In the name of Jesus Christ I command you to come out of her!” At that moment the spirit left her.
When her owners realized that their hope of making money was gone, they seized Paul and Silas and dragged them into the marketplace to face the authorities. They brought them before the magistrates and said, “These men are Jews, and are throwing our city into an uproar by advocating customs unlawful for us Romans to accept or practice.”
The crowd joined in the attack against Paul and Silas, and the magistrates ordered them to be stripped and beaten with rods. After they had been severely flogged, they were thrown into prison, and the jailer was commanded to guard them carefully. When he received these orders, he put them in the inner cell and fastened their feet in the stocks.
About midnight Paul and Silas were praying and singing hymns to God, and the other prisoners were listening to them.
NIV: New International Version