He should not cease (to pray) unless he hears a sound or perceives a smell (of passing wind).

Sunan Abi Dawud Book 1, Hadith 176