It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that when the Prophet (peace and blessings be upon him) besieged the people of Ta’if during the Battle of Ta’if, he set free all those slaves of the polytheists who came to the Prophet (peace and blessings be upon him).