The Messenger of Allah ﷺ said, "Whoever frees his share in a slave, if he has wealth that reaches the value of the slave, the slave is to be appraised at a fair price. He then pays his partners their shares, and the slave is freed by him. Otherwise, only the portion he freed is freed."
حدثنا عبد الله بن يوسف أخبرنا مالك عن نافع
أن رسول الله ﷺ قال من أعتق شركا له في عبد فكان له مال يبلغ ثمن العبد قوم العبد عليه قيمة عدل فأعطى شركاءه حصصهم وعتق عليه العبد وإلا فقد عتق منه ما عتق