Conditions for prayer are : ritual purity of the body, correct clothing, correct place of prayer, observance of prayer times and grasping the intention.
Some scholars hold that the prayer of a man whose undergarment (izaar) hangs down over his ankles is invalid, whether it is a long robe or pants, because he has covered his aura but with a forbidden garment. According to the majority of scholars, this does not affect the validity of the prayer because the aura is covered and Sheikh Ibn Baz believes that although the person is sinning, his prayer is valid.
The Prophet (Allah’s blessings and peace be upon him) said. “Whatever hangs from the lower garment beyond the ankle is in the fire.”
Imam Ahmad reports that Abdur-Rahman ibn Yaqub said, “I asked Abu Sa’id, ‘Have you heard anything from the Messenger of Allah about the garment?’ He said, ‘Yes, listen carefully. The robe of the Mu’min should go to the middle of the calves, although there is nothing wrong if it goes from there to the ankles, but what goes below the ankles is for Hellfire.”
This prohibition has its root in the pride behind it. Thus, the Messenger of Allah (Allah’s blessings and peace be upon him) said, “Drooping refers to the robe, the (long) shirt, and the turban. Whoever lets anything hang down out of pride, Allah will not look at him on the Last Day.”
The Messenger of Allah (Allah’s blessings and peace be upon him) said, “Whoever lets his garment drag behind him out of pride, Allah will not look at him.” Umm Salama said, “O Messenger of Allah, what should the women do with their clothes?” He said, “They should lower them a hand span.” She asked, “Their feet will remain bare.” He said, “Then they shall lower them for a cubit, but no more.”
Women are explicitly allowed to let their clothes hang down further to cover their feet. A woman asked Umm Salama (r.a.) the following, “I am a woman with a long hem on my dress and I walk through dirty places (what should I do?) Umm Salamah replied, “The Messenger of Allah (sallallahu alaihi was sallam) said, “What comes after it cleans it.” Abu Huraira (r.a.) reported that the Messenger of Allah (Allah’s blessings and peace be upon him) said, “A man was walking around haughtily, admiring himself in his clothes. Allah caused him to be swallowed up by the earth, and he suffers in it until the Day of Resurrection.”
Salim ibn `Abdullah reported from his father that the Prophet, Allah’s blessings and peace be upon him, said, “Whoever self-importantly lets his clothes drag on the ground behind him, Allah will not look at him on the Day of Resurrection.” Abu Bakr said to him, “O Messenger of Allah, it sometimes happens that one side of my loincloth hangs down by itself unless I pay attention to it and change it.” The Prophet, Allah’s blessings and peace be upon him, said, “You are not the one who does this out of self-importance!”
That the reason for the prohibition lies in pride is consequently evident. However, a garment should not be a sign of arrogance outwardly either, and should not be worn out of arrogance inwardly only. One should pay attention to the individual types of garments to see what kind of wearing is a sign of arrogance and avoid it, just as it is generally a sign of arrogance in the case of long garments to let them drag on the ground.
Dr. Yusuf al-Qaradawi concludes, “Therefore, men should keep their pants a little above the ankle and it can be lowered to the ankles, but below the ankles it is forbidden if it implies ostentation; if not, extending it (downward) is makruh (frowned upon), especially if it attracts dirt.”
It is undesirable to roll up one’s clothes at the beginning of the prayer on the occasion of it and during the prayer or to pin up one’s hair for the same occasion. The Prophet (Allah’s blessings and peace be upon him) said, “I was commanded to prostrate myself on seven (bones) and that I should neither (pin up) my hair nor roll up my garment.”
Regarding the woman’s aura, there are some differences of opinion among scholars. The Prophet (Allah’s blessings and peace be upon him) clarified that the ritual prayer of an adult woman without a head covering is not accepted. Some, esp. the Hanbalite school, consider covering the whole body to be obligatory. According to the generality of scholars, the face and hands are exempt.
According to the prevailing view, however, the feet must be covered. According to some scholars, however, the feet can remain uncovered. This is the view of Abu Hanifa, and it seems to be the most correct one. The clothing must not be see-through or tight-fitting, or in other words, it must be loose.
Someone who has no clothes and nothing with which to wrap himself prays naked, although it is sometimes considered better to pray sitting down and merely indicating bowing and prostration.
It is preferable to pray in more than one garment (i.e., a top and a bottom) because Allah (s.w.t.) has the greatest right to have you dress beautifully for Him.
It is permissible to pray barefoot as well as with shoes. A hadith says: “He (Allah’s blessings and peace be upon him) used to stand in prayer and pray sometimes barefoot and sometimes with shoes.” If you take off your shoes, you should put them on your left side of your own accord as long as no one is praying in that place, otherwise you just put them between your feet.