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, so his Bedouin heirs came and informed the Messenger of Allah (peace and blessings be upon him) of what he had done. He (peace and blessings be upon him) said: "Why did he do that?" Then he cast lots between them, freed two and returned four to slavery.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 15496