Mishkat al-Masabih
Ibn ‘Abbas reported the Prophet (ﷺ) as saying, "The partner has first right to buy neighbouring property and the option to buy applies to everything.” Tirmidhi transmitted it, saying it has been transmitted on the authority of Ibn Abu Mulaika who quoted the Prophet (ﷺ) in mursal form, and it is sounder.
وَعَنِ ابْنِ عَبَّاسٍ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «الشَّرِيكُ شَفِيعٌ وَالشُّفْعَةُ فِي كل شَيْء» . رَوَاهُ التِّرْمِذِيّ قَالَ: وَقَدْ رُوِيَ عَنِ ابْنِ أَبِي مُلَيْكَةَ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مُرْسَلًا وَهُوَ أصح
Reference