Jami` at-Tirmidhi, Book 47, Hadith 3518 (In-Book)

Narrated Anas: "When this Ayah was revealed: 'But you did hide in yourself that which Allah will make manifest... (33:37)' about Zainab bint Jahsh, Zaid had come to the Prophet complaining, and he wanted to divorce her, so he consulted with the Prophet. The Prophet said: 'Keep your wife to yourself, and have Taqwa of Allah (33:37).'"

حَدَّثَنَا أَحْمَدُ بْنُ عَبْدَةَ الضَّبِّيُّ، حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ، قَالَ نَزَلَتْ هَذِهِ الآيَةُ ‏:‏ ‏(‏وتُخْفِي فِي نَفْسِكَ مَا اللَّهُ مُبْدِيهِ وَتَخْشَى النَّاسَ ‏)‏ فِي شَأْنِ زَيْنَبَ بِنْتِ جَحْشٍ جَاءَ زَيْدٌ يَشْكُو فَهَمَّ بِطَلاَقِهَا فَاسْتَأْمَرَ النَّبِيَّ صلى الله عليه وسلم فَقَالَ النَّبِيُّ صلى الله عليه وسلم ‏"‏ أَمْسِكْ عَلَيْكَ زَوْجَكَ وَاتَّقِ اللَّهَ ‏"‏ ‏.‏ قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ ‏.‏

sunnah.com