Maqil bin Yasar reported,

The Messenger of Allah ﷺ...Qutayba bin Saeed also narrated this to us, saying that Hammad reported from Mualla bin Ziyad, who traced it back to Muawiya bin Qurra, who traced it back to Maqil bin Yasar, who traced it back to the Prophet ﷺ, who said, "Worship during times of turmoil is like migration to me."

Muslim 7400

Sahih

حدثنا يحيى بن يحيى أخبرنا حماد بن زيد عن معلى بن زياد عن معاوية بن قرة

عن معقل بن يسار

أن رسول الله ﷺ ح و حدثناه قتيبة بن سعيد حدثنا حماد عن المعلى بن زياد رده إلى معاوية بن قرة رده إلى معقل بن يسار رده إلى النبي ﷺ قال العبادة في الهرج كهجرة إلي

مسلم 7400صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Tribulations and signs of the Hour
Chapter
Virtue of worship during times of turmoil
Numbering
Darussalam 7400
Muslim 7400