The Messenger of Allah ﷺ said, "The neighbor has the greater right to what is adjacent to his property."
أخبرنا علي بن حجر قال حدثنا سفيان عن إبراهيم بن ميسرة عن عمرو بن الشريد
قال رسول الله ﷺ الجار أحق بسقبه
No references are available.
Bukhari transmitted it in the chapter on tricks, section on gift-giving and preemption, no. 6977, from the hadith of Sufyan bin Uyayna, with the same chain, and it is also found in Kubra, no. 6301.