كتاب الأيمان
27  
The Book of Oaths
(12)
Chapter: One who frees his share in a slave
(12)
باب مَنْ أَعْتَقَ شِرْكًا لَهُ فِي عَبْدٍ ‏‏
Sahih Muslim 1502 b

Abu Huraira reported Allah's Apostle (ﷺ) as saying:

In case the slave is owned by two persons, and one of them emancipates him, he will guarantee (his full freedom).
وَحَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، وَمُحَمَّدُ بْنُ بَشَّارٍ، - وَاللَّفْظُ لاِبْنِ الْمُثَنَّى - قَالاَ حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، حَدَّثَنَا شُعْبَةُ، عَنْ قَتَادَةَ، عَنِ النَّضْرِ بْنِ أَنَسٍ، عَنْ بَشِيرِ بْنِ نَهِيكٍ، عَنْ أَبِي، هُرَيْرَةَ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ فِي الْمَمْلُوكِ بَيْنَ الرَّجُلَيْنِ فَيُعْتِقُ أَحَدُهُمَا قَالَ ‏ "‏ يَضْمَنُ ‏"‏ ‏.‏
Reference : Sahih Muslim 1502b
In-book reference : Book 27, Hadith 78
USC-MSA web (English) reference : Book 15, Hadith 4108
  (deprecated numbering scheme)