A neighbor of mine from the Ansar and I lived in the territory of Banu Umaya bin Zayd, in the upper district of Madinah. We used to take turns going down to the Messenger of Allah ﷺ. He would go one day, and I would go the next. Whenever I went, I would bring back to him the news of that day, whether revelation or anything else, and when he went, he would do the same.One day my Ansari companion came down on his turn and pounded violently on my door, calling out, "Is he there?" I was alarmed and came out to him.He said, "Something serious has happened."I went in to see Hafsah, and there she was, weeping.I asked her, "Has the Messenger of Allah ﷺ divorced you all?"She replied, "I do not know."Then I went in to the Prophet ﷺ and, while still standing, I asked, "Have you divorced your wives?"He said, "No."I exclaimed, "Allahu Akbar!"
كنت أنا وجار لي من الأنصار في بني أمية بن زيد، وهي من عوالي المدينة، وكنا نتناوب النزول على رسول الله ﷺ، ينزل يوما، وأنزل يوما، فإذا نزلت جثته بخبر ذلك اليوم من الوحي وغيره. وإذا نزل فعل مثل ذلك. فنزل صاحبي الأنصاري يوم نوبته فضرب بابي ضربا شديدا، فقال: أثم هو؟ ففزعت فخرجت إليه. قال: قد حدث أمر عظيم، قال: فدخلت على حفصة فإذا هي تبكي. فقلت: طلقكن رسول الله ﷺ قال: لا أدري. ثم دخلت على النبي ﷺ فقلت: وأنا قائم: أطلقت نساءك؟ قال: لا. فقلت: الله أكبر.
Bukhari narrated it in the Book of Knowledge (89), and Muslim in the Book of Divorce (34:1479), through various routes from Ibn Shihab, from Ubaydullah bin Abdullah bin Abu Thawr, from Abdullah bin Abbas, from Umar, who related it. The wording given here is that of Bukhari, while Muslim's wording is longer and contains a story, which you may find in the Book of Divorce.