Sunan Abi Dawud, Hadith 638

Abu Hurairah said : while a man was praying letting his lower garment trail, the Messenger of Allah said to him: Go and perform ablution. He, therefore, went and performed ablution and then returned. He (the prophet) again said: Go and perform ablution. He again went, performed ablution and returned. A man said to him (the prophet): Messenger of Allah, why did you order him to perform ablution? He said: he was praying with lower garment trailing, and does not accept the prayer of a man who lets his lower garment trail.

حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا أَبَانُ، حَدَّثَنَا يَحْيَى، عَنْ أَبِي جَعْفَرٍ، عَنْ عَطَاءِ بْنِ يَسَارٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ بَيْنَمَا رَجُلٌ يُصَلِّي مُسْبِلاً إِزَارَهُ إِذْ قَالَ لَهُ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ اذْهَبْ فَتَوَضَّأْ ‏"‏ ‏.‏ فَذَهَبَ فَتَوَضَّأَ ثُمَّ جَاءَ ثُمَّ قَالَ ‏"‏ اذْهَبْ فَتَوَضَّأْ ‏"‏ ‏.‏ فَذَهَبَ فَتَوَضَّأَ ثُمَّ جَاءَ فَقَالَ لَهُ رَجُلٌ يَا رَسُولَ اللَّهِ مَا لَكَ أَمَرْتَهُ أَنَّ يَتَوَضَّأَ فَقَالَ ‏"‏ إِنَّهُ كَانَ يُصَلِّي وَهُوَ مُسْبِلٌ إِزَارَهُ وَإِنَّ اللَّهَ تَعَالَى لاَ يَقْبَلُ صَلاَةَ رَجُلٍ مُسْبِلٍ إِزَارَهُ ‏"‏ ‏.‏

sunnah.com