Praying with the head uncovered
In prayer, a man must cover his private parts (satr), and in addition there must be some cloth on his shoulders alone.
➊ It is narrated from ‘Umar ibn Abi Salamah (may Allah be pleased with him): رأيت النبى صلى الله عليه وسلم يصلي فى ثوب واحد متوشحا به فى بيت أم سلمة قـدالـقـي طرفيه على عاتقيه “I saw the Prophet ﷺ praying in the house of Umm Salamah (may Allah be pleased with her) wrapped in a single garment, the two ends of which he ﷺ had thrown over his shoulders.”
From this hadith it is known that there was no cloth on the head of the Prophet ﷺ during the prayer.
➋ It is narrated from Jabir (may Allah be pleased with him) that one day he prayed wrapped in one garment, while another garment was lying close by. After he finished the prayer, someone asked him: why are you praying in only one garment when you have another garment available? He replied: نعم ، أحببت أن يراني الجهال مثلكم رأيت النبى صلى الله عليه وسلم يصلى كذا “Yes! I wanted ignorant people like you to see me. I saw the Prophet ﷺ pray like this.”
➌ ‘Umar (may Allah be pleased with him) did not regard covering the head as necessary for the prayer even in times of plenty.
However, the prayer of an adult woman is not valid with the head uncovered, as it is narrated from ‘Aishah (may Allah be pleased with her) that the Messenger of Allah ﷺ said: لا يقبل الله صلاة حائض إلا بخمار “Allah the Exalted does not accept the prayer of an adult woman without a head covering (that is, a scarf and the like).”