عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ خَرَجَ إِلَى الصَّلَاةِ فَلَمَّا كَبَّرَ انْصَرَفَ وَأَوْمَأَ إِلَيْهِمْ أَيْ كَمَا أَنْتُمْ ثُمَّ خَرَجَ فَاغْتَسَلَ ثُمَّ جَاءَ وَرَأْسُهُ يَقْطُرُ فَصَلَّى بِهِمْ فَلَمَّا صَلَّى قَالَ: ((إِنِّي كُنْتُ جُنُبًا فَنَسِيتُ أَنْ أَغْتَسِلَ))
Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates that the Noble Prophet (peace and blessings be upon him) came for prayer, and when he said Allahu Akbar, he turned (towards his house) and gestured to the people to remain as they were. Then he went home, performed ghusl, and returned with water dripping from his head. Then he led the people in prayer, and when he had finished the prayer, he said: I was in a state of janabah and had forgotten to perform ghusl.