From Sahih Bukhari (Hadith 2214):
Narrated Jabir bin `Abdullah:Allah's Messenger (ﷺ) decided the validity of preemption in every joint undivided property, but if the boundaries were well marked or the ways and streets were fixed, then there was no pre-emption
Reference: Bukhari 2214