Sayyiduna Imran bin Husayn (may Allah be pleased with him) says: A man freed his six slaves at the time of his death, and he had no other wealth. The Prophet (peace and blessings be upon him) summoned them and divided them into three parts, then drew lots among them; the Prophet (peace and blessings be upon him) freed two and kept four as slaves, and he spoke severely about that man.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب العتق / 21364