Sahih al-Bukhari 2496
Sahih al-Bukhari · Book 47: Partnership · If partners divide the houses, etc.
Narrated Jabir bin `Abdullah:
حَدَّثَنَا مُسَدَّدٌ ، حَدَّثَنَا عَبْدُ الْوَاحِدِ ، حَدَّثَنَا مَعْمَرٌ ، عَنِ الزُّهْرِيِّ ، عَنْ أَبِي سَلَمَةَ ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ ـ رضى الله عنهما ـ قَالَ قَضَى النَّبِيُّ صلى الله عليه وسلم بِالشُّفْعَةِ فِي كُلِّ مَا لَمْ يُقْسَمْ، فَإِذَا وَقَعَتِ الْحُدُودُ وَصُرِّفَتِ الطُّرُقُ فَلاَ شُفْعَةَ.
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."