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 be upon him) set free all the slaves of the polytheists who came to him.
Hadith Referenceمسند احمد / ومن مسند بني هاشم / 2229
Hadith Gradingحکم دارالسلام:حسن لغيره، وهذا إسناد ضعيف لضعف نصر بن باب، حجاج بن أرطاة مدلس وقد عنعن، وبينه وبين مقسم، الحكم بن عتيبة