Sunan Abi Dawud, Book 2, Hadith 81 (Abu Dawud 471)

Abu Hurairah reported the apostle of Allah (May peace be upon him) as saying; The servant (of Allah) is considered to he at prayer so long as he remains at the place of prayer waiting for prayer. The angels say:

O Allah, forgive him? O Allah, take mercy on him, until he turns away, or he is defiled. He was asked: what is meant by defilement? He replied: he breaks wind gently or loudly.