Saeed bin Musayyib (may Allah have mercy on him) narrates that a woman or a man freed his six slaves, while he had no other wealth besides them. This matter was brought before the Prophet ﷺ, so he ﷺ drew lots among the slaves and freed one third of them (i.e., two). Imam Shafi’i (may Allah have mercy on him) said: This incident of freeing (the slaves) was during the illness in which the person died.
Hadith Referenceمسند الإمام الشافعي / كتاب العتق والولاء والمدبر والمكاتب وحسن الملكة / 1072
Hadith Takhrijصحيح من غير هذا الطريق: اخرجه مسلم الایمان، باب من اعتق شركاله في عبد (1667)۔
It is narrated from Imran bin Husain (may Allah be pleased with him) that a man from among the Ansar made a bequest at the time of his death and freed six slaves, and he had no wealth other than them. Or he said (the narrator is unsure whether the words were): At the time of his death, he freed six slaves and had nothing besides them. This matter reached the Prophet ﷺ, and he ﷺ expressed strong displeasure at this. Then he ﷺ called for those slaves, divided them into three groups, and by drawing lots, freed two of them, and kept four as slaves (in the ownership of the heirs).
Hadith Referenceمسند الإمام الشافعي / كتاب العتق والولاء والمدبر والمكاتب وحسن الملكة / 1073