Scholars agree that shaving the beard is not the Sunnah and most hold it forbidden, but they differ on trimming: the Hanafis and many others permit cutting what exceeds a fist's length, other scholars say it should be left alone, and most allow tidying its edges.
- The Prophet (saw) said to trim the moustache and let the beard grow (Sahih al-Bukhari and Sahih Muslim).
- Ibn 'Umar (ra) used to hold his beard and cut what exceeded a fist, as al-Bukhari records, and this is the main evidence of those who allow trimming.
- Others, such as Ibn Baz and Ibn 'Uthaymin, held that the command to let it grow leaves no room to cut, and that Ibn 'Umar's action was a personal practice.
- Neatening the edges and the cheek line, and trimming straggling or uneven hairs, is permitted according to most scholars, and a man should follow a qualified scholar of his own school or country.
Introduction
The beard has a clear place in the hadith, and the scholars' differences concern its details. This answer sets out the texts first, then the positions with their holders. It is not a ruling for a particular person. Anyone with a specific question, such as about a job, a medical condition or a family situation, may ask a scholar who knows the circumstances.
Several terms appear in the reports and affect the legal discussion. Lihya is the beard. I'fa', tawfir and irkha' are words in the hadith meaning to let grow, leave abundant and let hang. Qass and akhdh mean to cut or to take from. Each is the basis of a legal discussion.
The texts
The Prophet (saw) said: "Differ from the polytheists: trim the moustaches and let the beards grow" (Sahih al-Bukhari, Book of Dress, and Sahih Muslim, Book of Purification), in the narration of Ibn 'Umar (ra). In another narration, from Abu Hurayra (ra): "Trim the moustaches and leave the beards; differ from the Magians" (Sahih Muslim). The beard is among the acts of fitra, the natural disposition, listed in the hadith of 'A'isha (ra) in Sahih Muslim: trimming the moustache, letting the beard grow, using the tooth stick, sniffing water into the nose, cutting the nails, washing the joints, removing the underarm hair, shaving the pubic hair and rinsing the private parts with water.
Al-Bukhari records, in the Book of Dress, that when Ibn 'Umar (ra) performed Hajj or 'Umra he held his beard in his fist and cut off what exceeded it. Ibn Abi Shayba and others report that Abu Hurayra (ra) did the same. A hadith in al-Tirmidhi says that the Prophet (saw) used to take from the length and width of his beard, but al-Tirmidhi called it gharib and its chain includes 'Umar ibn Harun al-Balkhi, whom the critics considered weak, so it is not used as proof by most scholars. The reports of the Companions' practice are the principal evidence.
Shaving
The scholars are close to agreement that shaving is not allowed, though they vary in how they describe it. The majority of Hanbalis, Hanafis, Malikis and many Shafi'is hold that shaving is forbidden (haram). Ibn Hazm in Maratib al-Ijma' reports consensus on the obligation to trim the moustache and let the beard grow. Some earlier Shafi'i scholars, relying on how they read the text of al-Shafi'i, held that shaving is disliked (makruh). Later Shafi'is such as Ibn Hajar al-Haytami and al-Ramli leaned to the stronger view that it is forbidden. A man who shaves commits a sin according to the majority, but is not outside Islam on that account, and no scholar says he is.
Trimming
The Hanafis, with Ibn 'Abidin in Radd al-Muhtar, say that cutting what is less than a fist is not allowed and that cutting what exceeds a fist is permitted or recommended, relying on Ibn 'Umar and Abu Hurayra. Many Shafi'is and Hanbalis permit cutting what is excessive, and Ahmad ibn Hanbal is reported by his students to have allowed taking what exceeds a fist. The Maliki position is mixed. Qadi 'Iyad reports that Imam Malik disliked a beard so long that it is excessive, and the Maliki school generally disliked cutting too much from it, while some Maliki scholars allowed trimming what is unsightly.
A second view holds that the command to let the beard grow is general, and that it is better not to cut any of it, treating Ibn 'Umar's practice as a personal choice and not a general rule. Shaykh 'Abd al-'Aziz ibn Baz and Shaykh Muhammad ibn 'Uthaymin leaned to this. A further group of contemporary scholars, including some of those at al-Azhar and Dar al-Ifta in Egypt, say that trimming and shaping it is allowed so long as it is not shaved. The commentary of Ibn Hajar on the hadith of Ibn 'Umar in Fath al-Bari records the older difference: some disliked taking from it at all, and others permitted cutting what exceeded a fist.
Practical points
Most scholars agree that the following are allowed: trimming the moustache, which the hadith commands; removing hair on the cheeks and below the line of the jaw that is clearly outside the beard; and tidying the neck. They disagree on dyeing and lightening, though the Prophet (saw) said to change grey hair with a dye but to avoid black (Sahih Muslim, and Sunan Abi Dawud on avoiding black). Anyone who has been shaving should not despair: the Qur'an says that Allah forgives all sins to those who turn back (39:53). The beard is a sign of following the Sunnah, but it is not a pillar of belief, and a man who is trying to keep it should be encouraged. Disputes over its length should not lead to harshness, since the Companions did not rebuke one another over this.
Whether the command is an obligation
A further question is the force of the command itself. The majority of scholars, including the four schools, read the Prophet's words as an obligation, since the command is in the imperative and the reason given, to differ from the polytheists, is a reason of principle. Some contemporary writers hold that the command is a recommendation tied to the custom of the time, and that what matters is differing in the sense of keeping to a recognisable Muslim identity. This is a minority view and most scholars reject it, because the Prophet (saw) addressed the matter as a rule of the natural disposition, and because the Companions kept it after the conquests when custom among the nations had changed. A man who works where a beard is not accepted, or who has a skin condition that makes it painful, may ask a scholar about necessity (darura), which the jurists treat as a separate ground with its own conditions, and should not decide it alone.
Conclusion
The Sunnah is to let the beard grow, and shaving is not allowed according to most scholars. On trimming, the scholars differ: the Hanafis and others permit cutting what exceeds a fist, and some contemporary Salafi scholars advise leaving it entirely. A Muslim may follow a qualified scholar whom he trusts, and need not condemn those who follow the other view. Allah knows best.
References
The Qur'an: 39:53.
Sahih al-Bukhari: Book of Dress (trimming the moustache; the practice of Ibn 'Umar). Sahih Muslim: Book of Purification (acts of fitra); Book of Dress.
Jami' al-Tirmidhi: Book of Manners, the hadith on taking from the length and width of the beard. Sunan Abi Dawud: Book of Hair-dressing (dyeing).
Ibn Hajar, Fath al-Bari. al-Nawawi, al-Majmu' and Sharh Sahih Muslim. Ibn 'Abidin, Radd al-Muhtar. Ibn Hazm, Maratib al-Ijma'. Qadi 'Iyad, Ikmal al-Mu'lim. Ibn Baz and Ibn 'Uthaymin, collected fatwas.