Jami` at-Tirmidhi · Book 32 · Hadith 2146, 2298
حَدَّثَنَا بُنْدَارٌ, قَالَ: حَدَّثَنَا مُؤَمَّلٌ، قَالَ: حَدَّثَنَا سُفْيَانُ، عَنْ أَبِي إِسْحَاقَ، عَنْ مَطَرِ بْنِ عُكَامِسٍ، قَالَ: قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " إِذَا قَضَى اللَّهُ لِعَبْدٍ أَنْ يَمُوتَ بِأَرْضٍ جَعَلَ لَهُ إِلَيْهَا حَاجَةً " . قَالَ أَبُو عِيسَى وَفِي الْبَابِ عَنْ أَبِي عَزَّةَ . وَهَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ …
Matar bin 'Ukamis narrated that the Messenger of Allah (s.a.w) said: "When Allah decrees that a slave (of His) is to die in a land, He makes him have some need from it." Another chain reports a similar narration.