This is what has been transmitted to us by Abu Huraira from Muhammad, the Messenger of Allah (ﷺ) and then narrated a hadith out of them and observed that the Messenger of Allah (ﷺ) said: The prayer of none amongst you would be accepted in a state of impurity until he performs ablution.
Sahih Muslim Book 2, Hadith 4