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:13915Muḥammad b. ʿAbdullāh al-Ḥāfiẓ > Abū al-Ḥasan ʿAlī b. Muḥammad b. Sakhtawayh > Muḥammad b. Ayyūb > ʿAbdullāh b. ʿAbd al-Wahhāb al-Ḥajabī > Ḥammād b. Zayd > Thābit > Anas

[Machine] This verse {And you conceal within yourself what Allah is to disclose} [Al-Ahzab 37] was revealed regarding the matter of Zainab bint Jahsh. Zaid came and complained about his intention to divorce her to the Prophet ﷺ and sought his advice in this matter. The Prophet ﷺ responded to him by saying {Keep your wife and fear Allah} [Al-Ahzab 37] {And you conceal within yourself what Allah is to disclose} [Al-Ahzab 37]. Zaid then divorced her, and the Prophet ﷺ then married her to himself in order to prevent any complications for the believers in the matter of their adopted children's wives when they have fulfilled their purpose.  

البيهقي:١٣٩١٥أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو الْحَسَنِ عَلِيُّ بْنُ مُحَمَّدِ بْنِ سَخْتَوَيْهِ ثنا مُحَمَّدُ بْنُ أَيُّوبَ أنبأ عَبْدُ اللهِ بْنُ عَبْدِ الْوَهَّابِ الْحَجَبِيُّ ثنا حَمَّادُ بْنُ زَيْدٍ ثنا ثَابِتٌ عَنْ أَنَسٍ قَالَ

نَزَلَتْ هَذِهِ الْآيَةُ {وَتُخْفِي فِي نَفْسِكَ مَا اللهُ مُبْدِيهِ} [الأحزاب 37] فِي شَأْنِ زَيْنَبَ بِنْتِ جَحْشٍ وَكَانَ جَاءَ زَيْدٌ يَشْكُو وَهَمَّ بِطَلَاقِهَا جَاءَ يَسْتَأْمِرُ النَّبِيَّ ﷺ فِي ذَلِكَ فَقَالَ لَهُ النَّبِيُّ ﷺ {أَمْسِكْ عَلَيْكَ زَوْجَكَ وَاتَّقِ اللهَ} [الأحزاب 37] {وَتُخْفِي فِي نَفْسِكَ مَا اللهُ مُبْدِيهِ} [الأحزاب 37] الْآيَةَ قَالَ {فَلَمَّا قَضَى زَيْدٌ مِنْهَا وَطَرًا زَوَّجْنَاكَهَا لِكَيْلَا يَكُونَ عَلَى الْمُؤْمِنِينَ حَرَجٌ فِي أَزْوَاجِ أَدْعِيَائِهِمْ إِذَا قَضَوْا مِنْهُنَّ وَطَرًا}  

أَخْرَجَهُ الْبُخَارِيُّ فِي الصَّحِيحِ مِنْ وَجْهَيْنِ آخَرَيْنِ عَنْ حَمَّادِ بْنِ زَيْدٍ