كتاب العتق
20  
The Book of Emancipating Slaves
(1)
Chapter: One who frees his share of a slave
(1)
باب مَنْ أَعْتَقَ شِرْكًا لَهُ فِي عَبْدٍ ‏‏
Sahih Muslim 1501 a

Ibn Umar (Allah be pleased with them) reported Allah's Messenger may peace be upon him) as saying:

If anyone emancipates his share ina slave and has enough money to pay the full price for him, a fair price for the slave should be fixed, his partners given their shares, and the slave be thus emancipated, otherwise he is emancipated only to the extent of the first man's share.
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، قَالَ قُلْتُ لِمَالِكٍ حَدَّثَكَ نَافِعٌ، عَنِ ابْنِ عُمَرَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ مَنْ أَعْتَقَ شِرْكًا لَهُ فِي عَبْدٍ فَكَانَ لَهُ مَالٌ يَبْلُغُ ثَمَنَ الْعَبْدِ قُوِّمَ عَلَيْهِ قِيمَةَ الْعَدْلِ فَأُعْطِيَ شُرَكَاؤُهُ حِصَصَهُمْ وَعَتَقَ عَلَيْهِ الْعَبْدُ وَإِلاَّ فَقَدْ عَتَقَ مِنْهُ مَا عَتَقَ‏"‏ ‏.‏
Reference : Sahih Muslim 1501a
In-book reference : Book 20, Hadith 1
USC-MSA web (English) reference : Book 9, Hadith 3578
  (deprecated numbering scheme)