Sahih Bukhari Volume 009, Book 086, Hadith Number 086.

Narrated By Abu Huraira : The Prophet said, "Allah does not accept prayer of anyone of you if he does Hadath (passes wind) till he performs the ablution (anew)."