Amr bin al-Sharid (may Allah have mercy on him) said that the Prophet (peace and blessings be upon him) used to rule in favour of pre-emption (shuf'ah, the first right of purchase) in a well, a house and a garden, before it was divided.
Hadith Referenceالمعجم الكبير للطبراني / باب الشين / 7224