It is narrated from Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) was standing to lead the people in prayer when suddenly he (peace and blessings be upon him) turned away (leaving the prayer). Then, when he (peace and blessings be upon him) came back, drops of water were dripping from his (peace and blessings be upon him) blessed head. He (peace and blessings be upon him) said: "I stood to lead you, then I remembered that I was in a state of major ritual impurity (janabah) and had not taken a ritual bath, so I left and took a bath. So whoever among you experiences what I experienced, or feels a rumbling in his stomach, let him leave (the prayer) and take a bath, then come back and offer his prayer anew."
Imam al-Tabarani (may Allah have mercy on him) said: "This hadith is narrated from Sayyiduna Ali (may Allah be pleased with him) only with this chain, and Ibn Lahi'ah (may Allah have mercy on him) is alone in narrating it."
In the printed Dar al-Haramayn edition the narrator's name is given as "Durayd", whereas the correct name is "Zurayr", as reported in Musnad Ahmad and other books.
Hadith Referenceالمعجم الأوسط / باب الميم / 6390
Hadith Gradingمحدثین:إسناده ضعيف لاضطراب ابن لهيعة فيه، والأشبه موقوف على علي
Hadith Takhrij«قال أبو حاتم الرازي: أنا أرضى أن يكون هذا من كلام علي موقوف وابن لهيعة قد خلط في حديثه فأما في هذا الحديث فقال مرة حدثنا عبد الله بن هبيرة عن عبد الله بن زرير عن علي عن النبي صلى الله عليه وسلم وقال مرة حدثنا الحارث بن يزيد عن عبد الله بن زرير عن علي عن النبي صلى الله عليه وسلم «علل الحديث، ج 1، ص 486»» «قال أبو حاتم الرازي: أنا أرضى أن يكون هذا من كلام علي موقوف «الإعلام بسنته عليه الصلاة والسلام بشرح سنن ابن ماجه الإمام، ج 3، ص 91»» «قال الطبراني: لا يروى عن علي إلا بهذا الإسناد تفرد به ابن لهيعة «الإعلام بسنته عليه الصلاة والسلام بشرح سنن ابن ماجه الإمام، ج 3، ص 91»» «قال الهيثمي: مدار طرقه على ابن لهيعة وفيه كلام «مجمع الزوائد ومنبع الفوائد، ج 2، ص 68»» «أخرجه البيهقي فى «السنن الكبرى» برقم: 3012، 3438، 3437، 3439، والدارقطني فى «سننه» برقم: 576، 575، 1358، وأحمد فى «مسنده» برقم: 679، 680، 788، والبزار فى «مسنده» برقم: 892، وعبد الرزاق فى «مصنفه» برقم: 3232، 3607، 3606، 3686، وابن أبي شيبة فى «مصنفه» برقم: 5952، 5955، 5967، 8556، والطحاوي فى «شرح معاني الآثار» برقم: 1635»