Sahih Muslim 1501 d
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ أَعْتَقَ شِرْكًا لَهُ مِنْ مَمْلُوكٍ فَعَلَيْهِ عِتْقُهُ كُلُّهُ إِنْ كَانَ لَهُ مَالٌ يَبْلُغُ ثَمَنَهُ فَإِنْ لَمْ يَكُنْ لَهُ مَالٌ عَتَقَ مِنْهُ مَا عَتَقَ "
Ibn 'Umar reported Allah's Messenger (ﷺ) as saying:
He who emancipates his share in the slave, it is his responsibility to secure full freedom for him provided he (the slave) has enough money to pay the (remaining) price, but it he has not so much money he would be emancipated to the extent that the first man emancipated.
Full reference and source
Sahih Muslim 1501 d In-book : Book 27, Hadith 74 USC-MSA web (English) : Book 15, Hadith 4103 (deprecated)
View source on Sunnah.com (opens in a new tab)