It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "The partner has the right of pre-emption, and pre-emption applies in everything."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الشفعة / 11598