Narrated Ali ibn Talq:
The Messenger of Allah (ﷺ) said: When any of you breaks wind during the prayer, he should turn away and perform ablution and repeat the prayer.
‘Ali b. Talq reported the Messenger of Allah (ﷺ) as saying: When any of you breaks wind during prayer, he must withdraw, perform ablution, and repeat the prayer.
Ali bin Talq narrated that A Bedouin came to the Prophet (ﷺ) and said: “O Messenger of Allah! A man among us would be in the desert and a small smell would come from him, (what should he do) while the water is scarce? So…
Ali narrated that The Messenger of Allah (ﷺ) said: “When one of you breaks wind then let him perform Wudu, and do not go into your women through their behinds.”