"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. (Using translation from Tirmidhī 2146)
قَالَ رَسُولُ اللَّهِ ﷺ «إِذَا أَرَادَ اللَّهُ قَبْضَ عَبْدٍ بِأَرْضٍ جَعَلَ لَهُ إِلَيْهَا حَاجَةً»