An Arabi asked the Messenger of Allah ﷺ about emigration. He replied, "Woe to you, the matter of emigration is difficult. Do you have any camels?"The man said, "Yes."He asked, "Do you pay the charity due on them?"The man said, "Yes."He said, "Then work from beyond the seas, for Allah will never let any of your deeds go to waste."
أخبرنا الحسين بن حريث قال حدثنا الوليد بن مسلم قال حدثنا الأوزاعي عن الزهري عن عطاء بن يزيد الليثي
أن أعرابيا سأل رسول الله ﷺ عن الهجرة فقال ويحك إن شأن الهجرة شديد فهل لك من إبل قال نعم قال فهل تؤدي صدقتها قال نعم قال فاعمل من وراء البحار فإن الله عز وجل لن يترك من عملك شيئا
Bukhari narrated it in the Book of Zakat, chapter on the zakat of camels, hadith 1452, and Muslim in the Book of Leadership, chapter etc., hadith 1865, from the hadith of Walid, concerning the pledge of allegiance after the conquest of Makkah upon Islam, jihad, and good deeds. Muslim narrated it similarly, and it is also in Kubra, hadith 7787.