(25) باب الْغُرْفَةِ وَالْعُلِّيَّةِ الْمُشْرِفَةِ وَغَيْرِ الْمُشْرِفَةِ فِي السُّطُوحِ وَغَيْرِهَا
Narrated Anas:
Allah's Messenger (ﷺ) took an oath that he would not go to his wives for one month as his foot had been sprained. He stayed in an upper room when `Umar went to him and said, "Have you divorced your wives?" He said, "No, but I have taken an oath that I would not go to them for one month." The Prophet stayed there for twenty-nine days, and then came down and went to his wives.
Reference: Sahih al-Bukhari 2469
In-book reference: Book 46, Hadith 30
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 3, Book 43, Hadith 649