Hadith
حَدَّثَنَا حُمَيْدُ بْنُ مَسْعَدَةَ، حَدَّثَنَا جَعْفَرُ بْنُ سُلَيْمَانَ، عَنِ الْمُعَلَّى بْنِ زِيَادٍ، عَنْ مُعَاوِيَةَ بْنِ قُرَّةَ، عَنْ مَعْقِلِ بْنِ يَسَارٍ، قَالَ قَالَ رَسُولُ ـ صلى الله عليه وسلم ـ " الْعِبَادَةُ فِي الْهَرْجِ كَهِجْرَةٍ إِلَىَّ " .
It was narrated from Ma’qil bin Yasar that the Messenger of Allah (ﷺ) said:“Worship during the time of bloodshed is like emigrating to me.”
Sahih · Al-Albani
Sunan Ibn Majah 3985 ·Book 36, Hadith 60·Also available on sunnah.com·