The Prophet ﷺ said, "The neighbor has the greater right to what is adjacent to him."
حدثنا أبو بكر بن أبي شيبة وعلي بن محمد قالا حدثنا سفيان بن عيينة عن إبراهيم بن ميسرة عن عمرو بن الشريد
أن النبي ﷺ قال الجار أحق بسقبه
No references are available.
Bukhari transmitted it in the Book of Legal Tricks, chapter on gifts and preemption, no. 6977, through the route of Sufyan, at length.