Hadithcore
Sahih Muslim, 426 a
sahih

Anas reported:

The Messenger of Allah (ﷺ) one day led us in the prayer. and when he completed the Prayer he turned his face towards us and said: 0 People, I am your Imam, so do not precede me in bowing and prostration and in standing and turning (faces, i. e. In pronouncing salutation), for I see you in front of me and behind me, and then said: By Him in Whose hand Is the life of Muhammad, if you could see what I see, you would have laughed little and wept much more. They said: What did you see, Messenger of Allah? He replied: (I saw) Paradise and Hell.

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

References2 variants
In-Book Reference
Book 4, Hadith 123
USC-MSA web (English) reference
Book 4, Hadith 857 (deprecated numbering scheme)
Sharh · explanationclick to expand
The Prophet ﷺ commanded Muslims to follow the prayer leader (imam) in all of his moves and prohibited them from preceding him. In this hadith, Anas ibn Malek narrated that one day the Prophet ﷺ guided them - after ending the congregational prayer - to avoid preceding him in bowing and prostration nor standing and leaving and showed that he saw them in front and behind him. He may have meant that Allah granted him this exceptional privilege or that Allah revealed to him their moves in prayer, for vision may have expressed knowledge. Then, he swore by Allah that if his companions had seen what I saw, they would have laughed little and wept much for the horrible matters Allah revealed to him. When they asked him about the reason, he answered them that he had seen Paradise and Hell. He wanted to tell them that if they had seen what he saw of Paradise’s bliss for the obedient ones and Hell’s torment for the disobedient ones, they would have been overwhelmed by worry and distress, for they would have hoped to get Paradise’s bliss and avoid Hell’s torment. They would have laughed a little and wept much, for none could know his fate. Finally, this hadith contains the following benefits: (1) It encourages Muslims to be submissive in prayer and complete its pillars, (2) The imam should teach people the conditions of prayer, especially if he sees something contradicts them, and (3) It clarifies the Prophet’s miracle that he can see in front and behind him alike..
Related hadiths1
Compare isnād across 1 related chains →