Sayyiduna Imran bin Husayn (may Allah be pleased with him) asked Sayyiduna al-Hakam bin Amr al-Ghifari (may Allah be pleased with him): Did you hear the Messenger of Allah (peace and blessings be upon him) say: "There is no obedience to any created being in disobedience to Allah"? He said: Yes.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 15458
It is narrated from Sayyiduna Imran bin Husayn (may Allah be pleased with him) that a man of the Ansar freed six head (of slaves) at the time of his death, and he owned nothing besides them. This reached the Prophet (peace and blessings be upon him), "so he (peace and blessings be upon him) called them, cast lots between them, freed two and returned four to slavery."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 15459