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.
quran:12:32

She said, "That is the one about whom you blamed me. And I certainly sought to seduce him, but he firmly refused; and if he will not do what I order him, he will surely be imprisoned and will be of those debased."  

She, the wife of the Court Officer, said, when she saw what happened to them, ‘This is he on whose account, for the love of whom, you blamed me (alladhī lumtunnanī fīhi is an explication of her excuse). Indeed I did attempt to seduce him, but he withheld himself, he refused. Yet if he does not do what I bid him, he verily shall be imprisoned, and verily shall be of those brought low’, those abased. The women said to him: ‘Obey your mistress!’.
القرآن:١٢:٣٢

قَالَتْ فَذَٰلِكُنَّ الَّذِي لُمْتُنَّنِي فِيهِ ۖ وَلَقَدْ رَاوَدْتُهُ عَنْ نَفْسِهِ فَاسْتَعْصَمَ ۖ وَلَئِنْ لَمْ يَفْعَلْ مَا آمُرُهُ لَيُسْجَنَنَّ وَلَيَكُونًا مِنَ الصَّاغِرِينَ  

{قالت} امرأة العزيز لما رأت ما حل بهن {فذلكن} فهذا هو {الذي لمتنني فيه} في حبه بيان لعذرها {ولقد راودته عن نفسه فاستعصم} امتنع {ولإن لم يفعل ما آمره} به {ليسجنن وليكونا من الصاغرين} الذليلين فقلن له أطع مولاتك.