Abu Hurairah reported,

The Prophet ﷺ came out to lead the prayer, and when he had pronounced the opening takbir, he turned away and gestured to them to remain as they were. He then left, performed a full bath, and returned with water still dripping from his head. He led them in prayer, and when he had finished he said, "I was in a state of major ritual impurity and forgot to bathe."

Ahmad 9786

Sahih

حدثنا وكيع قال حدثنا أسامة بن زيد عن عبد الله بن يزيد مولى الأسود بن سفيان عن ابن ثوبان

عن أبي هريرة

أن النبي ﷺ خرج إلى الصلاة فلما كبر انصرف وأومأ إليهم أي كما أنتم ثم خرج فاغتسل ثم جاء ورأسه يقطر فصلى بهم فلما صلى قال إني كنت جنبا فنسيت أن أغتسل

أحمد 9786صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 9786
Ahmad 9786