The Recommendation to Wear a Head Covering During Prayer
Sheikh Muhammad Shiddiq Al Minsyawi, in his book titled ‘Rajin Shalat tapi Masih Keliru’ (Diligent in Prayer but Still Mistaken), writes that according to the Hanafi school, intentionally abandoning an obligation is forbidden. The general principle states that it is disliked for a person performing prayer to deliberately omit recommended acts.
It is also disliked to do things that disturb the focus and perfection of prayer, including abandoning its completeness by praying with an uncovered head.
This is because it means abandoning adorning oneself during prayer, as commanded by Allah in His words in Surah Al-A’raf verse 31: ‘O children of Adam, take your adornment at every mosque.’
Meanwhile, a hadith states: ‘When one of you prays, let him wear his two garments, for Allah is more deserving of being adorned for.’ (Narrated by At-Thabrani)
According to Sheikh Shiddiq, there is a command to adorn oneself during prayer, which includes covering the head. Therefore, the scholars said: ‘It is recommended for men to appear their best during prayer, following the example of the Prophet Muhammad (peace be upon him) and his appearance when performing prayer, as narrated by trustworthy scholars.’
A man from the Ansar asked Ibn Umar, ‘O Abu Abdir Rahman! Is wearing a cap recommended?’ He replied, ‘Yes.’
It is not narrated from the Prophet (peace be upon him) that he uncovered his head during prayer, except during ihram. If the Prophet Muhammad had done so, it would certainly have been narrated to us.
As for the basis used by some groups, namely the hadith that permits uncovering the head, that hadith is weak or can still be interpreted differently. Among them is the hadith from Ibn Abbas: ‘The Prophet (peace be upon him) sometimes removed his cap to place it as a barrier in front of him.’
According to Sheikh Shiddiq, that hadith is weak. Moreover, there is no evidence in that hadith indicating that he wore nothing on his head.
As for drawing an analogy between uncovering the head during prayer and the Hajj pilgrimage, this is an incorrect analogy. This is because during Hajj it is permissible to do things that are not permissible outside of Hajj. Hajj is a special act of worship with special procedures that cannot be equated with other acts of worship.
Source: jawawa.id (https://jawawa.id/newsitem/the-recommendation-to-wear-a-head-covering-during-prayer-1787795480)
Originally published by Republika (https://khazanah.republika.co.id/berita/tkel17430/anjuran-memakai-tutup-kepala-saat-sholat), translated from Indonesian