وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ
قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا تُقْبَلُ صَلَاةُ مَنْ أَحْدَثَ حَتَّى يتَوَضَّأ»
The Prophet (sallallahu alayhi wa sallam) said:, “The prayer of one who has voided excrement will not be accepted until he performs ablution.”
Mishkat al-Masabih 283, Book 4, Purification, Hadith 19. 1 min read