Sahih Muslim – Hadith No : 7588

Ma’qil b. Yasar reported Allah’s Apostle (may peace be upon him) as saying: Worshiping during the period of widespread turmoil is like emigration towards me.

Hadith In Arabic Text :

وحدثناه قتيبة بن سعيد، حدثنا حماد، عن المعلى بن زياد، رده إلى معاوية بن قرة رده إلى معقل بن يسار رده إلى النبي صلى الله عليه وسلم قال ‏”‏ العبادة في الهرج كهجرة إلى ‏”‏ ‏.‏

Chapter : The Book Pertaining to the Turmoil and Portents of the Last Hour – كتاب الفتن وأشراط الساعة