وَلَا تَنكِحُواْ ٱلۡمُشۡرِكَٰتِ حَتَّىٰ يُؤۡمِنَّۚ وَلَأَمَةٞ مُّؤۡمِنَةٌ خَيۡرٞ مِّن مُّشۡرِكَةٖ وَلَوۡ أَعۡجَبَتۡكُمۡۗ وَلَا تُنكِحُواْ ٱلۡمُشۡرِكِينَ حَتَّىٰ يُؤۡمِنُواْۚ وَلَعَبۡدٞ مُّؤۡمِنٌ خَيۡرٞ مِّن مُّشۡرِكٖ وَلَوۡ أَعۡجَبَكُمۡۗ أُوْلَٰٓئِكَ يَدۡعُونَ إِلَى ٱلنَّارِۖ وَٱللَّهُ يَدۡعُوٓاْ إِلَى ٱلۡجَنَّةِ وَٱلۡمَغۡفِرَةِ بِإِذۡنِهِۦۖ وَيُبَيِّنُ ءَايَٰتِهِۦ لِلنَّاسِ لَعَلَّهُمۡ يَتَذَكَّرُونَ ٢٢١
Do not marry unbelieving women (idolaters), until they believe: A slave woman who believes is better than an unbelieving woman, even though she allures you. Nor marry (your girls) to unbelievers until they believe: A man slave who believes is better than an unbeliever, even though he allures you. Unbelievers do (but) beckon you to the Fire. But Allah beckons by His Grace to the Garden (of bliss) and forgiveness, and makes His Signs clear to mankind: That they may celebrate His praise.
walaa tankihuu almusyrikaati hattaa yu’minna wala’amatun mu’minatun khayrun min musyrikatin walaw ’a‘jabatkum walaa tunkihuu almusyrikiina hattaa yu’minuu wala‘abdun mu’minun khayrun min musyrikin walaw ’a‘jabakum ’ulaa’ika yad‘uuna ’ilaa annaari wallaahu yad‘uu ’ilaa aljannati walmaghfirati bi’iznihi wayubayyinu ’aayaatihi linnaasi la‘allahum yatazakkaruuna
When Marthad reached Mecca, a woman called 'Anaq heard of his arrival and went to see him. This woman used to be his mistress in the pre-Islamic period but when he embraced Islam, he abandoned her. She said to him: 'Woe unto you, O Marthad! Should we not go somewhere secluded?' He said: 'Islam has placed a barrier between you and I and seclusion with you is forbidden for me. However, if you wish, I will marry you. When I return back to the Messenger of Allah, Allah bless him and give him peace, I will seek his permission and marry you'. She said to him: 'Do you refuse the like of me?' She then cried for help, and Marthad was beaten up very badly before they let him go. When he finished his business in Mecca, he went back to the Messenger of Allah, Allah bless him and give him peace, and informed him about 'Anaq and what he went through because of her. He then asked: 'O Messenger of Allah! Is it lawful for me to marry her?' Allah revealed this verse forbidding him from marrying her (Wed not idolatresses till they believe…)”.