Sayyiduna Ma'qil bin Yasar (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "Worship in a time of fitnah (trial) is like emigrating to me."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 17626