Musnad Ahmad 668
Grading supplied with this record: Da'if (Darussalam) because of the weakness of Ibn Lahee'ah]
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
It was narrated that "Ali bin Abi Talib (رضي الله عنه) said:
Whilst we were praying with the Messenger of Allah (ﷺ), he left whilst we were standing there, then he came back with his head dripping and led us in prayer. Then he said: “I remembered that I was junub when I got up to pray and had not done ghusl. Whoever hears a sound in his stomach or is in the state I was in, let him go and relieve himself or do ghusl, then come back to his prayer."
Full reference and source
Musnad Ahmad 668 Arabic/English book : Book 5, Hadith 668
View source on Sunnah.com (opens in a new tab)