Abdullah bin Umar reported,

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."

Bukhari 2522

Sahih

حدثنا عبد الله بن يوسف أخبرنا مالك عن نافع

عن عبد الله بن عمر رضي الله عنهما

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

البخاري 2522صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Emancipation of slaves
Chapter
If one frees a slave owned jointly by two people or a female slave owned by partners
Numbering
Darussalam 2522
Bukhari 2522