[Machine] The Prophet ﷺ went out to perform the prayer. When he made the takbeer, he looked at them, meaning, as you are, then he went out. He performed ablution and came back with water dripping from his head. He prayed with them, and after he finished praying, he said, "I was in a state of major impurity and forgot to perform ablution."
أَنَّ النَّبِيَّ ﷺ خَرَجَ إِلَى الصَّلَاةِ فَلَمَّا كَبَّرَانْصَرَفَ وَأَوْمَأَ إِلَيْهِمْ أَيْ كَمَا أَنْتُمْ ثُمَّ خَرَجَ فَاغْتَسَلَ ثُمَّ جَاءَ وَرَأْسُهُ يَقْطُرُ فَصَلَّى بِهِمْ فَلَمَّا صَلَّى قَالَ إِنِّي كُنْتُ جُنُبًا فَنَسِيتُ أَنْ أَغْتَسِلَ