It is narrated from a Companion (may Allah be pleased with him) that a man was performing prayer with his lower garment hanging below his ankles. The Noble Prophet (peace and blessings be upon him) said to him, "Go and perform ablution again." He gave this command twice, and each time the man performed ablution and returned. The people asked, "O Messenger of Allah! What is the matter that at first you commanded him to perform ablution and then remained silent?" The Noble Prophet (peace and blessings be upon him) said, "He was performing prayer with his lower garment hanging below his ankles, and Allah Almighty does not accept the prayer of such a person."
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 23217
Hadith Gradingحکم دارالسلام:إسناده ضعيف لجهالة أبى جعفر