Ma'qil b. Yasar reported Allah's Apostle (ﷺ) as saying:
Worshiping during the period of widespread turmoil is like emigration towards me.