Paul and companions met a female slave who had a spirit inside her that made her predict the future. After days of following them saying they were servants of God, Paul got so fed up that he took the demon out of her.
“In the name of Jesus Christ, I command you to come out of her!”
“These men are servants of the Highest God, who are telling you the way to be saved.”
After the slave owners found out, they got Paul and Silas into jail by telling the authorities that they were Jews. They were stripped, flogged and beaten and finally thrown into prison where they were under careful watch by the jailer.