Bulugh al-Maram, Book 15, Hadith 1422 (In-Book)

Ibn 'Umar (RAA) narrated that The Messenger of Allah said: “Anyone who emancipates his share in a slave and has enough money to pay the full price for him, a fair price for the slave should be fixed. His partners should be given their shares, and the slave should thus be emancipated. Otherwise he is emancipated only to the extent of the first man’s share.” Agreed upon,

وَعَنِ ابْنِ عُمَرَ رَضِيَ اَللَّهُ عَنْهُمَا قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ "مَنْ أَعْتَقَ شِرْكًا لَهُ فِي عَبْدٍ, فَكَانَ لَهُ مَالٌ يَبْلُغُ ثَمَنَ اَلْعَبْدِ, قُوِّمَ قِيمَةَ عَدْلٍ, فَأَعْطَى شُرَكَاءَهُ حِصَصَهُمْ, وَعَتَقَ عَلَيْهِ اَلْعَبْدُ, وَإِلَّا فَقَدْ عَتَقَ مِنْهُ مَا عَتَقَ" } مُتَّفَقٌ عَلَيْه ِ 1‏.‏ ‏1 ‏- صحيح.‏ رواه البخاري ( 2522 )‏، ومسلم ( 1501 )‏.‏ و" شركا" : نصيبا.‏

sunnah.com

also referenced under: Book 15, Hadith 1466 (English)