Jami` at-Tirmidhi, Book 12, Hadith 21 (Tirmidhi 1169)

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.”