Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:13863Abū ʿAbdullāh al-Ḥāfiẓ And ʿUbayd > Abū al-ʿAbbās > Yaḥyá > ʿAbd al-Wahhāb > Saʿīd > Qatādah > Saʿīd b. Jubayr

[Machine] He said about this verse {The adulterer does not marry except an adulteress or polytheist, and none marries her except an adulterer or a polytheist} [An-Nur 3], he said: There were known prostitutes in the city, so Allah made their marriage forbidden for the believers, and this is the statement of Qatadah.  

البيهقي:١٣٨٦٣وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ وَعُبَيْدٌ قَالَا ثنا أَبُو الْعَبَّاسِ ثنا يَحْيَى أنبأ عَبْدُ الْوَهَّابِ أنبأ سَعِيدٌ عَنْ قَتَادَةَ عَنْ سَعِيدِ بْنِ جُبَيْرٍ

أَنَّهُ قَالَ فِي هَذِهِ الْآيَةِ {الزَّانِي لَا يَنْكِحُ إِلَّا زَانِيَةً أَوْ مُشْرِكَةً وَالزَّانِيَةُ لَا يَنْكِحُهَا إِلَّا زَانٍ أَوْ مُشْرِكٌ} [النور 3] قَالَ كُنَّ بَغَايَا فِي الْمَدِينَةِ مَعْلُومٌ شَأْنُهُنَّ فَحَرَّمَ اللهُ نِكَاحَهُنَّ عَلَى الْمُؤْمِنِينَ وَهُوَ قَوْلُ قَتَادَةَ  


See similar narrations below:

Collected by Qurʾān
quran: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 has been made unlawful to the believers.  

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; and that, namely, marrying of fornicators, is forbidden to believers, who are better ˹than those˺. This was revealed when the poor among the Emigrants resolved to marry the wealthy whores of the idolaters, so that they ˹the women˺ would provide for them. Thus it is said that the prohibition applies specifically to them; but it is also said to apply in general; but it was abrogated by God’s words: Marry off the spouseless among you ˹Q. 24:32˺.
القرآن:٢٤:٣

الزَّانِي لَا يَنْكِحُ إِلَّا زَانِيَةً أَوْ مُشْرِكَةً وَالزَّانِيَةُ لَا يَنْكِحُهَا إِلَّا زَانٍ أَوْ مُشْرِكٌ ۚ وَحُرِّمَ ذَٰلِكَ عَلَى الْمُؤْمِنِينَ  

{الزاني لا ينكح} يتزوج {إلا زانية أو مشركة والزانية لا ينكحها إلا زان أو مشرك} أي المناسب لكل منهما ما ذكر {وحرم ذلك} أي نكاح الزواني {على المؤمنين} الأخيار، نزل ذلك لما همَّ فقراء المهاجرين أن يتزوجوا بغيا المشركين وهن موسرات لينفقن عليهم فقيل التحريم خاص بهم وقيل عام ونسخ بقوله تعالى (وأنكحوا الأيامى منكم).