“Worship during the time of bloodshed is like emigrating to me.”
Sunan Ibn Majah Book 36, Hadith 60