Sunan Ibn Majah, Book 1, Hadith 248 (Ibn Majah 514)

It was narrated that Abu Sa'eed Al-Khudri said:

"The Prophet was asked about doubts (concerning ablution) during prayer. He said: 'he should not leave until he hears a sound or detects an odor.'"