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:15054[Chain 1] Muḥammad b. ʿAbdullāh al-Ḥāfiẓ > al-Ḥusayn b. al-Ḥasan b. Ayyūb al-Ṭūsī > Abū Ḥātim al-Rāzī > Abū Tawbah [Chain 2] Abū al-ʿAbbās al-Qāsim b. al-Qāsim al-Sayyārī Bimarw > Abū al-Muwajjih > Yaḥyá b. Bishr al-Ḥarīrī > Muʿāwiyah b. Sallām > Yaḥyá b. Abū Kathīr > Yaʿlá b. Ḥakīm > Saʿīd b. Jubayr > Ibn ʿAbbās > Idhā Ḥarram al-a man ʿAlayh Āmraʾatah Fahī Yamīn Yukaffiruhā

[Machine] Indeed, in the Messenger of Allah you have a good example. (Quran 33:21)  

البيهقي:١٥٠٥٤أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ اللهِ الْحَافِظُ أنا الْحُسَيْنُ بْنُ الْحَسَنِ بْنِ أَيُّوبَ الطُّوسِيُّ نا أَبُو حَاتِمٍ الرَّازِيُّ نا أَبُو تَوْبَةَ ح قَالَ وَأنا أَبُو الْعَبَّاسِ الْقَاسِمُ بْنُ الْقَاسِمِ السَّيَّارِيُّ بِمَرْوَ وَاللَّفْظُ لَهُ نا أَبُو الْمُوَجِّهِ نا يَحْيَى بْنُ بِشْرٍ الْحَرِيرِيُّ قَالَا نا مُعَاوِيَةُ بْنُ سَلَّامٍ عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ أَنَّ يَعْلَى بْنَ حَكِيمٍ أَخْبَرَهُ عَنْ سَعِيدِ بْنِ جُبَيْرٍ أَنَّهُ سَمِعَ ابْنَ عَبَّاسٍ ؓ قَالَ إِذَا حَرَّمَ الرَّجُلُ عَلَيْهِ امْرَأَتَهُ فَهِيَ يَمِينٌ يُكَفِّرُهَا وَقَالَ

{لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللهِ أُسْوَةٌ حَسَنَةٌ} [الأحزاب 21]  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنِ الْحَسَنِ بْنِ الصَّبَّاحِ عَنْ أَبِي تَوْبَةَ إِلَّا أَنَّهُ قَالَ فِي مَتْنِهِ إِذَا حَرَّمَ امْرَأَتَهُ لَيْسَ بِشَيْءٍ وَقَالَ لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللهِ أُسْوَةٌ حَسَنَةٌ وَرَوَاهُ مُسْلِمٌ عَنْ يَحْيَى بْنِ بِشْرٍ كَمَا رَوَيْنَا