I had long been eager to ask Umar bin Khattab about the two wives of the Messenger of Allah ﷺ regarding whom Allah said, "If you two turn in repentance to Allah, your hearts have indeed inclined" [Tahrim 66:4].He then recounted the hadith, in which he said, "The Messenger of Allah ﷺ withdrew from his wives because of that incident, when Hafsah disclosed it to Ayesha, for twenty-nine nights."Ayesha said, "He had said, 'I will not enter upon them for a month,' due to the intensity of his displeasure with them when Allah informed him of what they had done. When twenty-nine nights had passed, he came to Ayesha and began with her."Ayesha said to him, "Messenger of Allah, you had sworn not to enter upon us for a month, and we have only reached the morning of the twenty-ninth night. We have been counting them."The Messenger of Allah ﷺ replied, "The month is twenty-nine nights."
أخبرنا عبيد الله بن سعد بن إبراهيم قال حدثنا عمي قال حدثنا أبي عن صالح عن ابن شهاب أن عبيد الله بن عبد الله بن أبي ثور حدثه ح و أخبرنا عمرو بن منصور قال حدثنا الحكم بن نافع قال أنبأنا شعيب عن الزهري قال أخبرني عبيد الله بن عبد الله بن أبي ثور
لم أزل حريصا أن أسأل عمر بن الخطاب عن المرأتين من أزواج رسول الله ﷺ اللتين قال الله لهما {إن تتوبا إلى الله فقد صغت قلوبكما} وساق الحديث وقال فيه فاعتزل رسول الله ﷺ نساءه من أجل ذلك الحديث حين أفشته حفصة إلى عائشة تسعا وعشرين ليلة قالت عائشة وكان قال ما أنا بداخل عليهن شهرا من شدة موجدته عليهن حين حدثه الله عز وجل حديثهن فلما مضت تسع وعشرون ليلة دخل على عائشة فبدأ بها فقالت له عائشة إنك قد كنت آليت يا رسول الله أن لا تدخل علينا شهرا وإنا أصبحنا من تسع وعشرين ليلة نعدها عددا فقال رسول الله ﷺ الشهر تسع وعشرون ليلة
Bukhari narrated it in the Book of Knowledge, Chapter on Taking Turns in Seeking Knowledge, no. 89, from the hadith of Shuayb bin Abu Hamza, and Muslim narrated it in the Book of Divorce, Chapter on Ila and Withdrawing from Women and Giving Them the Choice, etc., no. 34/1479, from the hadith of Ibn Shihab Zuhri, with the same wording. It is also found in Al-Kubra, no. 2442.