Hadithcore
Mishkat al-Masabih, 2968, 2969

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 <i>mursal</i> form, and it is sounder.

وَعَنِ ابْنِ عَبَّاسٍ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «الشَّرِيكُ شَفِيعٌ وَالشُّفْعَةُ فِي كل شَيْء» . رَوَاهُ التِّرْمِذِيّ قَالَ: وَقَدْ رُوِيَ عَنِ ابْنِ أَبِي مُلَيْكَةَ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مُرْسَلًا وَهُوَ أصح

References1 variant
In-Book Reference
Book 11, Hadith 203