When one of the husband and wife accepts Islam, the marriage is annulled and the waiting period (‘iddah) becomes obligatory.
➊ As it is in the Qur’an:
لا هُنَّ حِلٌّ لَّهُمْ وَلَا هُمْ يَحِلُّونَ لَهُنَّ [Al-Mumtahanah: 10]
“Neither are these (Muslim) women lawful for them (the disbelievers), nor are those (disbelievers) lawful for these (Muslim) women.”
➋ It is narrated from Ibn Abbas (may Allah be pleased with them both) that the polytheists, with respect to the Prophet ﷺ and the Muslims, were of two kinds. One was the polytheists of the people of war, whom he ﷺ fought and who fought him ﷺ; the other was the polytheists with a covenant and treaty (i.e. the dhimmis and the like), whom he ﷺ did not fight and who did not fight him ﷺ. When a woman from the people of war came (to Medina) having emigrated (as a Muslim), no proposal of marriage was made to her until she had menstruated and then become pure again. When she became pure, marriage to her became permissible. If her husband emigrated and came before she had married another man, she would be returned to him. And if a slave or a female slave from among the polytheists accepted Islam and emigrated, they were considered free, and they had the same rights as all the emigrants.
[Bukhari: 5286, Kitab al-Talaq: Chapter on the marriage of women who accepted Islam from among the polytheists and their waiting period]
Imam al-Zuhri (may Allah have mercy on him) said: Regarding this matter — a woman who came emigrating to Allah and His Messenger, while her husband remained a disbeliever residing in the abode of war — the only thing that has reached us is that the woman’s emigration caused separation between her and her husband, unless her husband emigrated and came before her waiting period was completed. And nothing has reached us that any woman and her husband were separated when her husband came while she was still in her waiting period.
[Muwatta: 544/2]
Remember that after the waiting period is completed, the woman has the choice to marry another, but if she does not marry and the first husband also accepts Islam, the two of them will remain in the first marriage.