Narrated Jabir bin 'Abdullah: The Prophet ﷺ established the right of Shu'fa (ie Preemption) in joint properties; but when the land is divided and the ways are demarcated, then there is no pre-emption.
This hadith teaches us that we should be fair and just with our co owners when dealing with joint properties and should not take advantage of them by selling our share without giving them an opportunity first. It also teaches us that we should respect each other's rights even if we are co owners of something together as Allah has commanded us to do so in His book.