Abdullah bin Umar reported,

The Messenger of Allah ﷺ said, "Whoever frees his share in a jointly owned slave, if he has wealth that reaches the price of the slave, the slave is to be valued at a fair price, his partners are paid their shares, and the slave becomes fully free at his expense. Otherwise, only the portion he freed is freed."

Azami 5655

Sahih

عن ابن عمر

أن رسول الله ﷺ قال: من أعتق شركا له في عبد، فكان له مال يبلغ ثمن العبد قوم عليه قيمة العدل، فأعطى شركائه حصصهم، وعتق عليه العبد، وإلا فقد عتق منه ما عتق.

الأعظمي 5655صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Sales
Chapter
Partnership
Section
Shared ownership of an enslaved person, and how he is valuated when some of the partners free him
Numbering
Jami al-Kamil 5655 (2nd edition)
Azami 5655