Imran bin Husayn reported,

A man from the Ansar freed six slaves of his upon his death, and he had no other wealth besides them. News of this reached the Prophet ﷺ, who spoke harshly about what he had done. He then summoned the slaves, divided them into groups, and drew lots between them. He freed two and kept four in slavery.

Tirmidhi 1364

Sahih

حدثنا قتيبة حدثنا حماد بن زيد عن أيوب عن أبي قلابة عن أبي المهلب

عن عمران بن حصين

أن رجلا من الأنصار أعتق ستة أعبد له عند موته ولم يكن له مال غيرهم فبلغ ذلك النبي ﷺ فقال له قولا شديدا ثم دعاهم فجزأهم ثم أقرع بينهم فأعتق اثنين وأرق أربعة

الترمذي 1364صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Rulings
Chapter
Whoever frees his slaves at the time of his death when he has no other wealth besides them
Numbering
Darussalam 1364
Tirmidhi 1364