Jami` at-Tirmidhi, Book 32, Hadith 15 (Tirmidhi 2215)

Abu 'Azzah 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." Or, he said: "In it."