When any of you breaks wind during prayer, he must withdraw, perform ablution, and repeat the prayer.
Sunan Abi Dawud Book 2, Hadith 616