It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) used to set free all those slaves of the polytheists who came to him after embracing Islam. Accordingly, on the occasion of the Battle of Ta’if, the Prophet (peace and blessings be upon him) also set two men free.
Hadith Referenceمسند احمد / ومن مسند بني هاشم / 2111
Hadith Gradingحکم دارالسلام:حسن لغيره، وهذا إسناد ضعيف، حجاج بن أرطاة مدلس وقد عنعن والحكم أبن عتيبة لم يسمعه من مقسم.