SAHIH BUKHARI
Volume 1, Book 4, Number 139:
Narrated 'Abbas bin Tamim:
My uncle asked Allah's Apostle about a person who imagined to have passed wind during the
prayer. Allah' Apostle replied: "He should not leave his prayers unless he hears sound or smells something."