Umm Salama said that she asked God's Messenger whether a woman might pray in a shift and veil without wearing a lower garment. He replied, “If the shift is ample and covers the surface of her feet.”
Abu Dawud transmitted it and he mentioned a number who did not trace it beyond Umm Salama.
Abu Huraira said that while a man was praying letting his lower garment trail, God’s Messenger said to him, “Go and perform ablution.” After he had gone to perform ablution and returned a man asked God’s Messenger why he had ordered him to perform ablution, and he said “He was praying with his lower garment trailing, and God does not accept the prayer of a man who lets his lower garment trail.”