Al-Ilmam bi-Ahadith al-Ahkam 999
وَعَن ابْن عَبَّاس، قَالَ: كَانَ الْمُشْركُونَ عَلَى منزلتين من النَّبِي ﷺ (وَالْمُؤمنِينَ) كَانُوا: (مُشْركي) أهل حَرْب يقاتلهم ويقاتلونه، (ومشركي أهل عهد لَا يقاتلهم وَلَا يقاتلونه، فَكَانَ إِذا هَاجَرت امْرَأَة من أهل الْحَرْب لم تُخطب حَتَّى تحيض وتطهر فَإِذا طهرت حل لَهَا النِّكَاح) ، فَإِن هَاجر زَوجهَا قبل أَن تنْكح ردَّت إِلَيْهِ وَإِن هَاجر عبد مِنْهُم أَو أمة فهما حران، وَلَهُمَا مَا للمهاجرين ". ثمَّ ذكر من أهل الْعَهْد مثل حَدِيث مُجَاهِد وَإِن هَاجر عبد أَو أمة للْمُشْرِكين من أهل الْعَهْد لم يُرد، وزدت أثمانهم. أخرجه البُخَارِيّ.
And from Ibn ʿAbbas, who said: The polytheists were of two kinds in relation to the Prophet ﷺ (and the believers): (polytheists who were) people at war, whom he fought and who fought him; (and polytheists who were people of a treaty, whom he did not fight and who did not fight him. When a woman of the people at war emigrated, she was not proposed to until she had menstruated and become pure, and when she became pure, marriage became lawful for her); if her husband emigrated before she married, she was returned to him. And if a slave or slave woman of theirs emigrated, they were free, and they had what the emigrants had. Then he mentioned about the people of the treaty the like of the hadith of Mujahid: And if a slave or slave woman of the polytheists of the people of the treaty emigrated, they were not returned, and their prices were returned. Al-Bukhari recorded it.