Abu al-Malih (may Allah have mercy on him) narrates from a man of his people, who had the honour of companionship, that the Messenger of Allah (peace and blessings be upon him) said: "When Allah Almighty wants to take a servant's soul in a certain land, He creates for him a need there."
Hadith Referenceالمعجم الكبير للطبراني / باب الياء / 18911