(17) باب إِذَا ذَكَرَ فِي الْمَسْجِدِ أَنَّهُ جُنُبٌ يَخْرُجُ كَمَا هُوَ وَلاَ يَتَيَمَّمُ
Narrated Abu Huraira:
Once the call (Iqama) for the prayer was announced and the rows were straightened. Allah's Messenger (ﷺ) came out; and when he stood up at his Musalla, he remembered that he was Junub. Then he ordered us to stay at our places and went to take a bath and then returned with water dropping from his head. He said, "Allahu-Akbar", and we all offered the prayer with him.
Reference: Sahih al-Bukhari 275
In-book reference: Book 5, Hadith 27
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 1, Book 5, Hadith 274
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.