Language:
كتاب المظالم
46  
Oppressions
(25)
Chapter: Looking or not looking upon other houses
(25)
باب الْغُرْفَةِ وَالْعُلِّيَّةِ الْمُشْرِفَةِ وَغَيْرِ الْمُشْرِفَةِ فِي السُّطُوحِ وَغَيْرِهَا
Sahih al-Bukhari 2469

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 : Vol. 3, Book 43, Hadith 649
  (deprecated numbering scheme)