أَخْبَرَنَا مُسْلِمُ بْنُ خَالِدٍ، عَنِ ابْنِ جُرَيْجٍ، عَنْ مُجَاهِدٍ: أَنَّ هَذِهِ الْآيَةَ نَزَلَتْ فِي بَغَايَا مِنْ بَغَايَا الْجَاهِلِيَّةِ كَانَتْ عَلَى مَنَازِلِهِمْ رَايَاتٌ. أَخْرَجَ الْأَوَّلَ مِنْ كِتَابِ عِشْرَةِ النِّسَاءِ، وَإِلَى آخِرِ الرَّابِعِ مِنْ كِتَابِ أَحْكَامِ الْقُرْآنِ.
It is narrated from Mujahid (may Allah have mercy on him) that this verse ﴿The adulterer does not marry...﴾ (An-Nur: 3) was revealed about those adulterous women of the Age of Ignorance who used to erect flags on their houses and commit immorality.