Malik related to me from Nafi from Abdullah ibn Umar that the Messenger of Allah ﷺsaid, "If a man frees his share of a slave and has enough money to cover the full price of the slave justly evaluated for him, he must buy out his partners so that the slave is completely freed. If he doesn't have the money, he partially frees him.
أنَّ رَسُولَ اللَّهِ ﷺ قالَ: «مَن أعْتَقَ شِرْكًا لَهُ فِي عَبْدٍ. فَكانَ لَهُ مالٌ يَبْلُغُ ثَمَنَ العَبْدِ، قُوِّمَ عَلَيْهِ قِيمَةَ العَدْلِ. فَأعْطى شُرَكاءَهُ حِصَصَهُمْ. وعَتَقَ عَلَيْهِ العَبْدُ. وإلّا فَقَدْ عَتَقَ مِنهُ ما عَتَقَ»