عَنْ جَابِرٍ قَالَ: قَضَى النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِالشُّفْعَةِ فِي كُلِّ مَا لَمْ يُقْسَمْ فَإِذَا وَقَعَتِ الْحُدُودُ وَصُرِفَتِ الطُّرُقُ فَلَا شُفْعَة. رَوَاهُ البُخَارِيّ
Translation
He said that God’s Messenger decreed the right of option regarding everything which is shared, whether a dwelling or a garden, when it had not been divided. It is not lawful to sell before informing one’s partner who may take it or let it go as he wishes ; but if he sells without informing him, he has the greatest right to it. Muslim transmitted it.