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:13864Abū ʿAbdullāh al-Ḥāfiẓ > ʿAbd al-Raḥman b. al-Ḥasan al-Qāḍī > Ibrāhīm b. al-Ḥusayn > Ādam b. Abū Iyās > And Rqāʾ > Ibn Abū Najīḥ > Mujāhid

[Machine] They were men who wanted to marry women who were sinners, seeking forbidden pleasures, just as it was during the time of ignorance. It was said to them, "This is forbidden." Then, this verse was revealed to them, and Allah forbade them from marrying such women.  

البيهقي:١٣٨٦٤أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ عَبْدُ الرَّحْمَنِ بْنُ الْحَسَنِ الْقَاضِي ثنا إِبْرَاهِيمُ بْنُ الْحُسَيْنِ ثنا آدَمُ بْنُ أَبِي إِيَاسٍ ثنا وَرْقَاءُ عَنِ ابْنِ أَبِي نَجِيحٍ عَنْ مُجَاهِدٍ قَالَ

هُمْ رِجَالٌ كَانُوا يُرِيدُونَ نِكَاحَ نِسَاءٍ زَوَانٍ بَغَايَا مُتَعَالِنَاتٍ كُنَّ كَذَلِكَ فِي الْجَاهِلِيَّةِ فَقِيلَ لَهُمْ هَذَا حَرَامٌ فَنَزَلَتْ فِيهِمْ هَذِهِ الْآيَةُ فَحَرَّمَ اللهُ نِكَاحَهُنَّ