He who gives up his share in a slave, the remaining (share) will be paid out of his riches if his riches are enough to meet the price of the slave. (Using translation from Muslim 1501h)
أَنَّ النَّبِيَّ ﷺ قَالَ «مَنْ أَعْتَقَ شِرْكًا لَهُ فِي عَبْدٍ أَتَمَّ مَا بَقِيَ فِي مَالِهِ إِذَا كَانَ لَهُ مَالٌ يَبْلُغُ ثَمَنَ الْعَبْدِ»