Volume 3 · Book 44 · Hadith 675
Narrated Jabir bin 'Abdullah: The Prophet established the right of Shu'fa (i.e. Pre-emption) in joint properties; but when the land is divided and the ways are demarcated, then there is no pre-emption.
— Sahih Bukhari, Volume 3, Book 44: Partnership, Hadith #675