Surah An-Nur 24:3
ٱلزَّانِى لَا يَنكِحُ إِلَّا زَانِيَةً أَوْ مُشْرِكَةً وَٱلزَّانِيَةُ لَا يَنكِحُهَآ إِلَّا زَانٍ أَوْ مُشْرِكٌ ۚ وَحُرِّمَ ذَٰلِكَ عَلَى ٱلْمُؤْمِنِينَ
The fornicator does not marry except a [female] fornicator or polytheist, and none marries her except a fornicator or a polytheist, and that [i.e., marriage to such persons] has been made unlawful to the believers.
Translation: Saheeh International
Tafsir
The fornicator shall not marry anyone but a fornicatress or an idolatress and the fornicatress shall be married by none except a fornicator or an idolator in other words what is suitable for each of the two for the purposes of marriage is the above-mentioned; …
Excerpt from Tafsir al-Jalalayn, commentary on 24:3, via Quran.com. The reader has the full commentary and 9 more tafsirs.