It is narrated from Sayyiduna Imran bin Husayn (may Allah be pleased with him) that a man freed his six slaves at the time of his death, and he had no wealth other than them, "so the Messenger of Allah (peace and blessings be upon him) cast lots between them, kept four in slavery and freed two."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 15538