It is narrated from Sayyiduna Samurah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "The neighbour of a house has the greater right of pre-emption (shuf'ah)."
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 6911