Hadithcore
Sahih al-Bukhari, 729
sahih

Narrated `Aisha:

Allah's Messenger (ﷺ) used to pray in his room at night. As the wall of the room was LOW, the people saw him and some of them stood up to follow him in the prayer. In the morning they spread the news. The following night the Prophet (ﷺ) stood for the prayer and the people followed him. This went on for two or three nights. Thereupon Allah's Messenger (ﷺ) did not stand for the prayer the following night, and did not come out. In the morning, the people asked him about it. He replied, that he way afraid that the night prayer might become compulsory.

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

‏ إِنِّي خَشِيتُ أَنْ تُكْتَبَ عَلَيْكُمْ صَلاَةُ اللَّيْلِ ‏

‏‏.‏

References2 variants
In-Book Reference
Book 10, Hadith 123
USC-MSA web (English) reference
Vol. 1, Book 11, Hadith 696 (deprecated numbering scheme)
Sharh · explanationclick to expand
The Messenger of Allah (blessings and peace of Allah be upon him) was compassionate towards his ummah, and one of the signs of his compassion was that sometimes he would refrain from doing some non-obligatory actions, lest they be made obligatory. This was because his companions (may Allah be pleased with them) loved to follow his example, and they would hasten to do what he did. In this hadith, the Mother of the Believers ‘A’ishah (may Allah be pleased with her) narrates that the Prophet (blessings and peace of Allah be upon him) was praying one night in his small enclosure (hujrah), which was a space that the Messenger of Allah (blessings and peace of Allah be upon him) had taken in the mosque in which to pray. In another report narrated by al-Bukhari from ‘A’ishah (may Allah be pleased with her), it says that the Prophet (blessings and peace of Allah be upon him) had a reed mat that he used to spread out by day and set up at night to make a small enclosure, and some people came and stood behind him [to follow his prayer]. This is what is meant by the word hujrah (translated here as small enclosure); it does not refer to the apartment (hujrah) of ‘A’ishah or the apartments of his other wives, in which he and his family lived. The apartments of the wives of the Prophet (blessings and peace of Allah be upon him) had walls that served as screens, so that whoever was outside could not see anyone who was inside. The prayer that the Messenger of Allah (blessings and peace of Allah be upon him) was praying later came to be known as Tarawih prayer. The Mother of the Believers ‘A’ishah (may Allah be pleased with her) stated in another report that that was in Ramadan, and she described the walls of the small enclosure in which he was praying as being low and being made of reeds. The people saw the figure of the Prophet (blessings and peace of Allah be upon him), meaning that they saw his outline or form from afar as he was praying. That happened at night, so they could not see anything of him (blessings and peace of Allah be upon him) except his form or outline in the dark, and they stood behind him (blessings and peace of Allah be upon him), following him in his prayer. News of that spread among the Muslims, and the same thing happened on the following two or three nights, and the number of those praying behind him increased. When the Prophet (blessings and peace of Allah be upon him) saw how keen they were and that they were gathering behind him for the supererogatory prayer, he stopped doing it. The people mentioned that to him and asked him why he had stopped doing it, so he (blessings and peace of Allah be upon him) explained to them that the reason for that was that he was afraid that this prayer would be made obligatory upon them. That is because the ummah is enjoined to follow the example of the Prophet (blessings and peace of Allah be upon him), and as qiyam al-layl was obligatory for him but not for his ummah, he was worried that if he kept coming out to them and they kept praying behind him, Allah might enjoin it on them as He had enjoined it on him, because in principle the Prophet (blessings and peace of Allah be upon him) and his ummah should be equal with regard to issues of worship. Or it may be that he feared that if they persisted in it, they might then grow weak and be unable to continue doing it, so they would give it up, and thus they would be regarded as having given up following the Prophet (blessings and peace of Allah be upon him). This hadith indicates that it is permissible to follow in prayer someone who did not intend to act as an imam and lead that prayer. It indicates that it is permissible to offer supererogatory prayer in congregation. It also highlights the compassion that the Prophet (blessings and peace of Allah be upon him) showed to his ummah. .