أُقِيمَتِ الصَّلاَةُ، وَعُدِّلَتِ الصُّفُوفُ قِيَامًا، فَخَرَجَ إِلَيْنَا رَسُولُ اللَّهِ صلى الله عليه وسلم فَلَمَّا قَامَ فِي مُصَلاَّهُ ذَكَرَ أَنَّهُ جُنُبٌ فَقَالَ لَنَا : " مَكَانَكُمْ ". ثُمَّ رَجَعَ فَاغْتَسَلَ، ثُمَّ خَرَجَ إِلَيْنَا وَرَأْسُهُ يَقْطُرُ، فَكَبَّرَ فَصَلَّيْنَا مَعَهُ.
Abu Hurairah reported: The iqamah was called and the rows were straightened while standing. Then the Messenger of Allah ﷺ came out to us. When he stood in his place of prayer, he remembered that he was in a state of janabah, and he said to …
also in Sahih al-Bukhari 639, Sahih al-Bukhari 640