He brought it back to the Prophet ﷺ, who said, "Worship during times of turmoil is like migrating to me."
حدثنا قتيبة حدثنا حماد بن زيد عن المعلى بن زياد رده إلى معاوية بن قرة رده إلى
رده إلى النبي ﷺ قال العبادة في الهرج كالهجرة إلي
No references are available.
Muslim also narrated it, in the chapter on the virtue of worship during turmoil, Fitan, hadith 2948, from Qutayba, with the same chain.