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

Amr ibn Uthman, Muhammad ibn Harb, and al-Zubaydi narrated to us, and Ayyash ibn al-Azraq narrated to us, Ibn Wahb informed us, from Yunus; and Mukhlad ibn Khalid narrated to us, Ibrahim ibn Khalid — the imam of the mosque of Sana'a — narrated to us, Rabah narrated to us, from Ma'mar; and Mu'ammal ibn al-Fadl narrated to us, al-Walid narrated to us, from al-Awza'i; all of them from al-Zuhri, from Abu Salamah, from Abu Hurayrah, who said: The prayer was established and the people arranged themselves in rows. Then the Messenger of Allah, peace and blessings be upon him, came out, and when he stood in his place, he remembered that he had not performed major ablution (ghusl). So he said to the people, "Stay in your places." Then he returned to his house and came out to us while water was dripping from his head, having performed ghusl, while we were in our rows. This is the wording of Ibn Harb, and 'Ayyash said in his narration: We remained standing, waiting for him until he came out to us having performed ghusl.