An Arabi asked the Prophet ﷺ about migration.He replied, "Woe to you, the matter of migration is hard. Do you have any camels?"The man said, "Yes."The Prophet ﷺ asked, "Do you pay their charity?"He replied, "Yes."The Prophet ﷺ said, "Then work from beyond the seas, for Allah will not let any of your deeds go to waste."
حدثنا مؤمل بن الفضل حدثنا الوليد يعني ابن مسلم عن الأوزاعي عن الزهري عن عطاء بن يزيد
أن أعرابيا سأل النبي ﷺ عن الهجرة فقال ويحك إن شأن الهجرة شديد فهل لك من إبل قال نعم قال فهل تؤدي صدقتها قال نعم قال فاعمل من وراء البحار فإن الله لن يترك من عملك شيئا
Source, Bukhari, Manners, chapter on what has been said about a man saying, "Woe to you," no. 6165, and Muslim, Leadership, chapter on the pledge of allegiance after the conquest of Makkah upon Islam, jihad, and goodness... etc, no. 1865, from the hadith of Walid bin Muslim through this chain.