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