It is narrated from Sayyiduna Ali (may Allah be pleased with him) that he said: "I heard the Messenger of Allah (peace and blessings be upon him) saying: 'Whoever leaves on his body (in the ritual bath for janabah) a spot even the size of a hair which the water has not touched, such and such will be done to him in the Fire.'"
Sayyiduna Ali (may Allah be pleased with him) said: "It is for this reason that I have taken my head (that is, its hair) as an enemy (that is, I began to shave it)."
Imam Abu Dawud (may Allah have mercy on him) narrated it from Musa bin Isma'il (may Allah have mercy on him).
Imam Ibn Majah (may Allah have mercy on him) narrated it from Abu Bakr bin Abi Shaybah (may Allah have mercy on him), from al-Aswad (may Allah have mercy on him), and both of them from Hammad bin Salamah (may Allah have mercy on him), with the like of it.
Imam al-Daraqutni (may Allah have mercy on him) was asked about this hadith, and he mentioned the disagreement in it and said: "What is preserved (mahfuz) is that it is from Affan (may Allah have mercy on him), from Hammad bin Salamah (may Allah have mercy on him)."
Related hadith on this topic
Explanation & Benefits
Shaykh Umar Farooq Saeedi
Benefits and Issues:
➊ From the collection of the aforementioned narrations, it is clear that in the ritual bath (ghusl) of major impurity (janabah), a person should carefully and diligently ensure that water reaches every part of the entire body; even a hair’s breadth left dry is a cause of punishment. However, women are given a legal concession in Shari‘ah that they do not have to undo their braids, as will be mentioned ahead.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 249
Maulana Ataullah Sajid
Commentary:
Keeping the hair of the head is indeed preferable, provided that it is not in the English (Western) style, but rather parted hair. However, shaving the hair off is also permissible.
Source: Commentary on Sunan Ibn Mājah by Mawlānā ‘Atā’ullāh Sājid, Page: 599