The Messenger of Allah ﷺ said, "Whoever frees his share of a jointly owned slave, and he has enough wealth to cover the price of the slave, then a fair valuation is made, he pays his partners their shares, and the slave is set free by him. Otherwise, only the portion he freed is free."
حدثني مالك عن نافع
أن رسول الله ﷺ قال من أعتق شركا له في عبد فكان له مال يبلغ ثمن العبد قوم عليه قيمة العدل فأعطى شركاءه حصصهم وعتق عليه العبد وإلا فقد عتق منه ما عتق