وَلَا تَنكِحُوا۟ ٱلْمُشْرِكَٰتِ حَتَّىٰ يُؤْمِنَّ ۚ وَلَأَمَةٌۭ مُّؤْمِنَةٌ خَيْرٌۭ مِّن مُّشْرِكَةٍۢ وَلَوْ أَعْجَبَتْكُمْ ۗ وَلَا تُنكِحُوا۟ ٱلْمُشْرِكِينَ حَتَّىٰ يُؤْمِنُوا۟ ۚ وَلَعَبْدٌۭ مُّؤْمِنٌ خَيْرٌۭ مِّن مُّشْرِكٍۢ وَلَوْ أَعْجَبَكُمْ ۗ أُو۟لَٰٓئِكَ يَدْعُونَ إِلَى ٱلنَّارِ ۖ وَٱللَّهُ يَدْعُوٓا۟ إِلَى ٱلْجَنَّةِ وَٱلْمَغْفِرَةِ بِإِذْنِهِۦ ۖ وَيُبَيِّنُ ءَايَٰتِهِۦ لِلنَّاسِ لَعَلَّهُمْ يَتَذَكَّرُونَ
And do not marry polytheistic women until they believe. And a believing slave woman is better than a polytheist, even though she might please you. And do not marry polytheistic men [to your women] until they believe. And a believing slave is better than a polytheist, even though he might please you. Those invite [you] to the Fire, but Allah invites to Paradise and to forgiveness, by His permission. And He makes clear His verses to the people that perhaps they may remember.
(Wed not idolatresses). This was revealed about Marthad Ibn Abi Marthad Al-Ghanawi who wanted to marry an idolatress woman by the name of 'Inaq. Allah prohibited such marriage, saying: do not marry idolatresses women (till they believe) in Allah; (for lo! A believing bondwoman) marrying a believing slave woman (is better than an idolatress) who is a free woman (though she pleases you) though you may like her comeliness and beauty; (and give not your daughters in marriage to idolaters till they believe) in Allah, (for lo! A believing slave) Allah says: giving your daughters in marriage to a believing slave (is better than an idolater) is better than your daughter marrying an idolater who is free (though he pleases you) though his body and strength may please you. (These invite unto the Fire) they invite to disbelief and to works that lead to hell, (and Allah inviteth unto the Garden) by means of His divine Oneness, (and unto forgiveness) through repentance (by His grace) by His leave, (and He expoundeth thus His revelations) His commands and prohibitions regarding marriage (to mankind that they may remember) so that they may take admonition and refrain from unlawful marriage.