Surah An-Nur — Ayah 3 (24:3)
ٱلزَّانِي لَا يَنكِحُ إِلَّا زَانِيَةً أَوۡ مُشۡرِكَةٗ وَٱلزَّانِيَةُ لَا يَنكِحُهَآ إِلَّا زَانٍ أَوۡ مُشۡرِكٞۚ وَحُرِّمَ ذَٰلِكَ عَلَى ٱلۡمُؤۡمِنِينَ ٣
English translation (Saheeh International)
The fornicator does not marry except a [female] fornicator or polytheist, and none marries her except a fornicator1 or a polytheist, and that [i.e., marriage to such persons] has been made unlawful to the believers.
- - Included in this ruling is the adulterer as well. Such persons cannot be married to believers unless they have repented and reformed.
Brief commentary
A fornicating man does not incline to marry except a fornicating woman like himself or an idolater who does not stay away from fornication. A fornicating woman does not incline to marry except a fornicating man like herself or an idolater who does not stay away from it. And marrying a fornicating male and female has been forbidden for believers.