(12) باب مَنْ أَعْتَقَ شِرْكًا لَهُ فِي عَبْدٍ
Ibn 'Umar reported Allah's Messenger (ﷺ) as saying:
He who gives up his share in a slave, and has enough money to pay the full price of the slave, then full emancipation devolves upon him; but if he has not the money, then he emancipated what he emancipated.
Reference: Sahih Muslim 1501 c
In-book reference: Book 27, Hadith 73
USC-MSA web (English) reference(deprecated numbering scheme): Book 15, Hadith 4102