Narrated Abdullah bin Yazid Al-Ansari: He asked Allah’s Messenger, peace be upon him, about a person who imagined to have passed wind during the Salat (prayer). Allah’s Messenger, peace be upon him, replied: “He should not leave his Salat unless he hears sound or smells something.”
[I: 139 O.B. Sahih Al-Bukhari)