Sahih al-Bukhari 6954
Sahih al-Bukhari · Book 90: Tricks · (Tricks) in As-Salat
Narrated 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).