Sunan an-Nasa'i 4164
It was narrated from Abu Sa'eed that:
a Bedouin asked the Messenger of Allah about emigration (Hijrah). He said: "Woe to you, emigration is very important. Do you have any camels?" He said: "Yes. He said: "Do you pay Sadaqah on them?" He said: "Yes." He said: "Do righteous deeds no matter how far away you are from the Muslims, for Allah, the Mighty and sublime, will never cause any of your deeds tobe lost."
أَخْبَرَنَا الْحُسَيْنُ بْنُ حُرَيْثٍ، قَالَ حَدَّثَنَا الْوَلِيدُ بْنُ مُسْلِمٍ، قَالَ حَدَّثَنَا الأَوْزَاعِيُّ، عَنِ الزُّهْرِيِّ، عَنْ عَطَاءِ بْنِ يَزِيدَ اللَّيْثِيِّ، عَنْ أَبِي سَعِيدٍ، أَنَّ أَعْرَابِيًّا، سَأَلَ رَسُولَ اللَّهِ صلى الله عليه وسلم عَنِ الْهِجْرَةِ فَقَالَ ‏"‏ وَيْحَكَ إِنَّ شَأْنَ الْهِجْرَةِ شَدِيدٌ فَهَلْ لَكَ مِنْ إِبِلٍ ‏"‏ ‏.‏ قَالَ نَعَمْ ‏.‏ قَالَ ‏"‏ فَهَلْ تُؤَدِّي صَدَقَتَهَا ‏"‏ ‏.‏ قَالَ نَعَمْ ‏.‏ قَالَ ‏"‏ فَاعْمَلْ مِنْ وَرَاءِ الْبِحَارِ فَإِنَّ اللَّهَ عَزَّ وَجَلَّ لَنْ يَتِرَكَ مِنْ عَمَلِكَ شَيْئًا ‏"‏ ‏.‏