Sahih Muslim · Hadith 7588
The Book Pertaining to the Turmoil and Portents of the Last Hour - كتاب الفتن وأشراط الساعة
وحدثناه قتيبة بن سعيد، حدثنا حماد، عن المعلى بن زياد، رده إلى معاوية بن قرة رده إلى معقل بن يسار رده إلى النبي صلى الله عليه وسلم قال " العبادة في الهرج كهجرة إلى " .
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.
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).