It was narrated from Jabir that the Messenger of Allah (ﷺ) said:
"The neighbor has more right to preemption of his neighbor, so let him wait for him even if he is absent, if they share a path." (DE)
English reference (DE): Vol. 3, Book 17, Hadith 2494 (DE)
Arabic reference (DE): Book 17, Hadith 2589 (DE)