It is narrated from Sayyiduna Abu Rafi' (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The neighbour has more right to what is adjacent to him."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الشفعة / 11579