Hadithcore
Sahih al-Bukhari, 378
sahih

Narrated Anas bin Malik:

Once Allah's Messenger (ﷺ) fell off a horse and his leg or shoulder got injured. He swore that he would not go to his wives for one month and he stayed in a Mashruba [??] (attic room) having stairs made of date palm trunks. So his companions came to visit him, and he led them in prayer sitting, whereas his companions were standing. When he finished the prayer, he said, "Imam is meant to be followed, so when he says 'Allahu Akbar,' say 'Allahu Akbar' and when he bows, bow and when he prostrates, prostrate and if he prays standing pray, standing. After the 29th day the Prophet (ﷺ) came down (from the attic room) and the people asked him, "O Allah's Messenger (ﷺ) ! You swore that you will not go to your wives for one month." He said, "The month is 29 days."

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

References2 variants
In-Book Reference
Book 8, Hadith 30
USC-MSA web (English) reference
Vol. 1, Book 8, Hadith 375 (deprecated numbering scheme)
Sharh · explanationclick to expand
The Prophet (blessings and peace of Allah be upon him) taught us the rulings and etiquette of praying in congregation, which include following and emulating the imam and listening attentively to his recitation, whilst remaining focused and keeping the rows orderly. In this hadith, Anas (may Allah be pleased with him) narrates that the Messenger of Allah (blessings and peace of Allah be upon him) fell from his horse, and sustained a cut on his leg. The word translated here as cut refers to a cut or something a little worse. In addition to that, he also suffered some bruising on his limbs, and pain that prevented him from standing in the prayer. The words “or shoulder” refer to uncertainty on the part of the narrator as to whether the injury was to his leg or his shoulder. The Prophet (blessings and peace of Allah be upon him) had sworn an oath to keep away from his wives for a month. In other words, the Messenger of Allah (blessings and peace of Allah be upon him) had vowed not to enter upon his wives for a month, so he stayed in a loft or room above ground level. It was said that the word translated here as loft refers to the upper part of the house, like a room, or that it refers to a storeroom which is like a ceiling for the space underneath it. The stairs by which he climbed up to this room were made from the trunks of palm trees. The companions of the Prophet (blessings and peace of Allah be upon him) came to visit him because he was sick, and when the time for prayer came, he led them in prayer whilst he was sitting and they were standing. After he said the taslim [at the end of the prayer], he said to them: “The imam is only appointed to be followed”, that is, to be emulated in his actions and movements, which includes: “when he says takbir then say takbir.” In other words, follow the imam in the takbir and do not precede him. When he bows, follow him in his bowing, and when he prostrates, follow him in his prostration. “And if he prays standing then pray standing.” In al-Sahihayn it says: “And if he prays sitting, then pray sitting, all of you.” So the posture of those who are praying behind an imam must be like the posture of the imam in prayer. Then the Prophet (blessings and peace of Allah be upon him) came down from his loft and went back to his wives twenty-nine days after he had sworn his oath. The Sahabah pointed out to him that he had sworn to keep away from them for a month, but he said: “This month has twenty-nine days,” meaning that the month in which they were was only twenty-nine days long, because the sighting of the new moon had been confirmed. Otherwise, the month is thirty days, if the new moon is not sighted. In this hadith, we see that it was possible for the Prophet (blessings and peace of Allah be upon him) to fall sick like any other human, without that undermining his position and status; in fact it served to increase him in status. It indicates that one may visit a person if he sustains a minor injury and the like. It indicates that the imam may pray sitting if he is not able to stand, and those praying behind him should follow him in that. In this hadith, the Lawgiver shows the way in which congregational prayer is to be performed, in such a manner as to facilitate proper focus in the prayer and to enable worshippers to pray in an orderly manner. It also confirms that the month is not always complete [with thirty days]..