The Messenger of Allah ﷺ said, "Worship during times of turmoil is like migrating to me."
حدثنا حميد بن مسعدة حدثنا جعفر بن سليمان عن المعلى بن زياد عن معاوية بن قرة
قال رسول الله ﷺ العبادة في الهرج كهجرة إلي
No references are available.
Reported by Muslim, Fitan, Chapter on the Merit of Worship in Times of Turmoil, no. 2948/130, from the hadith of Mualla bin Ziyad, transmitted through him.