Sunan Ibn Majah, Volume 5, Book 37, Hadith 4263 (DarusSalam)

It was narrated from ‘Abdullah bin Mas’ud that the Prophet said: “If the appointed time of death of anyone of you is in a certain land, some need will cause him to go there, then when he reaches the furthest point that it is decreed he will reach, Allah takes (his soul). And on the Day of Resurrection the earth will say: ‘My Lord, this is what You entrusted to me.’”

حَدَّثَنَا أَحْمَدُ بْنُ ثَابِتٍ الْجَحْدَرِيُّ، وَعُمَرُ بْنُ شَبَّةَ بْنِ عَبِيدَةَ، قَالاَ حَدَّثَنَا عُمَرُ بْنُ عَلِيٍّ، أَخْبَرَنِي إِسْمَاعِيلُ بْنُ أَبِي خَالِدٍ، عَنْ قَيْسِ بْنِ أَبِي حَازِمٍ، عَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ، عَنِ النَّبِيِّ ـ صلى الله عليه وسلم ـ قَالَ ‏:‏ ‏ "‏ إِذَا كَانَ أَجَلُ أَحَدِكُمْ بِأَرْضٍ أَوْثَبَتْهُ إِلَيْهَا الْحَاجَةُ فَإِذَا بَلَغَ أَقْصَى أَثَرِهِ قَبَضَهُ اللَّهُ سُبْحَانَهُ فَتَقُولُ الأَرْضُ يَوْمَ الْقِيَامَةِ ‏:‏ رَبِّ هَذَا مَا اسْتَوْدَعْتَنِي ‏" ‏ ‏.‏

sunnah.com