Jami` at-Tirmidhi, Book 15, Hadith 50 (Tirmidhi 1383)

Narrated Jabir:

that the Messenger of Allah (ﷺ) said: "The neighbor has more right to his preemption. He is to be waited for even if he is absent, when their paths are the same."