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:15790Abū ʿAbdullāh al-Ḥāfiẓ > Abū Bakr b. ʿAbdullāh > al-Ḥasan b. Sufyān > Abū Kāmil al-Jaḥdarī > Abū ʿAwānah > al-Aʿmash > Abū Sufyān > Jābir > a neighboriyah Liʿabd Allāh b. Ubay Yuqāl Lahā Musaykah And ʾUkhrá

[Machine] It is said that her name was Ummaymah, and he intended to force them into committing adultery. So they complained about this to the Prophet ﷺ, and Allah ﷻ revealed the verse {And do not compel your maidens to prostitution} [An-Nur 33] until His saying {Forgiving and Merciful} [Al-Baqarah 173].  

البيهقي:١٥٧٩٠أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أَخْبَرَنِي أَبُو بَكْرِ بْنُ عَبْدِ اللهِ أنبأ الْحَسَنُ بْنُ سُفْيَانَ ثنا أَبُو كَامِلٍ الْجَحْدَرِيُّ ثنا أَبُو عَوَانَةَ عَنِ الْأَعْمَشِ عَنْ أَبِي سُفْيَانَ عَنْ جَابِرٍ أَنَّ جَارِيَةً لِعَبْدِ اللهِ بْنِ أُبَيٍّ يُقَالُ لَهَا مُسَيْكَةُ وَأُخْرَى

يُقَالُ لَهَا أُمَيْمَةُ وَكَانَ يُرِيدُهُمَا عَلَى الزِّنَا فَشَكَتَا ذَلِكَ إِلَى النَّبِيِّ ﷺ فَأَنْزَلَ اللهُ ﷻ {وَلَا تُكْرِهُوا فَتَيَاتِكُمْ عَلَى الْبِغَاءِ} [النور 33] إِلَى قَوْلِهِ {غَفُورٌ رَحِيمٌ} [البقرة 173]  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ أَبِي كَامِلٍ

See similar narrations below:

Collected by Muslim
muslim:3029bAbū Kāmil al-Jaḥdarī > Abū ʿAwānah > al-Aʿmash > Abū Sufyān > Jābir > a neighboriyah Liʿabd Allāh b. Uba Ibn Salūl Yuqāl Lahā Musaykah And ʾUkhrá

" And compel not your slave-girls to prostitute" up to the words:" Allah is Forgiving, Merciful."  

مسلم:٣٠٢٩bوَحَدَّثَنِي أَبُو كَامِلٍ الْجَحْدَرِيُّ حَدَّثَنَا أَبُو عَوَانَةَ عَنِ الأَعْمَشِ عَنْ أَبِي سُفْيَانَ عَنْ جَابِرٍ أَنَّ جَارِيَةً لِعَبْدِ اللَّهِ بْنِ أُبَىٍّ ابْنِ سَلُولَ يُقَالُ لَهَا مُسَيْكَةُ وَأُخْرَى

يُقَالُ لَهَا أُمَيْمَةُ فَكَانَ يُكْرِهُهُمَا عَلَى الزِّنَى فَشَكَتَا ذَلِكَ إِلَى النَّبِيِّ ﷺ فَأَنْزَلَ اللَّهُ { وَلاَ تُكْرِهُوا فَتَيَاتِكُمْ عَلَى الْبِغَاءِ} إِلَى قَوْلِهِ { غَفُورٌ رَحِيمٌ}