The Woman Who Is Examined - 60:1 O you who believe, do not take my enemy as a friend and your enemy as a friend. You show them love while they have denied the truth that has come to you and have driven out the messenger and you (from your country) because you believed in Allah, your Lord. How can you love them secretly if you have gone out on a jihad in My way to win My favor? But I know very well what you conceal and what you reveal. Whoever of you does so has gone astray from the right path.
In past societies also the disbelievers drove out the believers:
The Heights/7:88 "The arrogant elders of his people said: "Shu´ayb, either we will expel you and those who believe with you from our city or you will return to our religion."He said: "Even if we do not want to?"

Mary/19:46 "(His father said:) "Are you turning away from my gods, Abraham? If you do not stop this, I will stone you, go away from me!"

Prophet Abraham/14:9 "Has not reached you the news of those who were before you, of Noah and the people of Aad and Thamud and those who came after them, whom only Allah knows? Their messengers went to them with clear proofs, but they despised them and said: "We disbelieve in what you have brought and we have doubts and misgivings about the message to which you call us"."
Prophet Abraham/14:10 "Their messengers said: "Do you doubt Allah, Who created the heavens and the earth, and He calls you to forgive you your sins and gives you a certain period of time?"They said: "You are but men like us, and you want to turn us away from that which our forefathers used to serve. Bring us a clear authorization"."
Prophet Abraham/14:11 "And their messengers said to them: "Surely we are human beings like you. But Allah chooses whom He wills from among His servants and bestows favor upon him. It is impossible for us to bring you a certificate of authority without Allah´s permission. Believers should trust in Allah."
Prophet Abraham/14:12 Why should we not trust in Allah, when He has shown us the way? We will patiently endure the persecution you are inflicting on us. Those who trust must trust in Allah.
Prophet Abraham/14:13 "The disbelievers said to their messengers, "Either you return to our religion or we will expel you from our land!"Their Lord revealed to them, "We will destroy the wrongdoers."

The Night Journey/17:76 They will almost force you out of the land. In that case they will not stay long after you

The Cave/18:19 "So We woke them up so that they might ask one another. One of them asked, "How long did you stay?"They said, "We stayed for a day or a part of a day.""Your Lord knows better how long you stayed. Let us send one of you to the city with this money, and let him choose the food that is good and delicious, and bring you a provision. He should be careful not to attract anyone´s attention,"they added."
The Cave/18:20 If they recognize you, they will stone you or convert you to their religion, in which case you will never succeed.