Ata' narrates from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that if a female or male slave of those polytheists with whom there is a treaty comes as an emigrant, they will not be returned; only their price will be paid.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجزية / 18837