Worshiping during the period of widespread turmoil is like emigration towards me.

Sahih Muslim Book 54 Hadith 163

Sahih Muslim #2948 a

The Book of Tribulations and Portents of the Last Hour 54:163

Ma'qil b. Yasar reported Allah's Apostle (ﷺ) as saying:

Worshiping during the period of widespread turmoil is like emigration towards me.

Chapter: The Virtue Of Worship At Times Of Turmoil

Grade: Sahih