Miswar bin Makhramah and Marwan bin al-Hakam (may Allah be pleased with them both) both mentioned the long story of Hudaybiyah; then they both said that when the believing women came, Allah Almighty said: "O you who believe, when believing women come to you as emigrants, [up to:] and do not hold on to the marriage ties of disbelieving women" [Surah al-Mumtahanah: 10]. So that day Sayyiduna Umar (may Allah be pleased with him) divorced his two wives who were from the days of Jahiliyyah (ignorance); Sayyiduna Mu'awiyah bin Abi Sufyan (may Allah be pleased with them both) married one of them, and Sayyiduna Safwan bin Umayyah (may Allah be pleased with him) married the other.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النكاح / 13971