The Prophet (ﷺ) said, "The right of preemption is valid in every joint property, but when the land is divided and the way is demarcated, then there is no right of pre-emption."
Sahih al-Bukhari Book 47, Hadith 14