Is It Permissible to shave the beard and the mouctache or shorten them?
The Muslim scholars hold a consensus that it is not permissible to shave (one’s) beard, and likewise it is (not permissible) to shorten it; except what has been narrated from Ibn Umar (radiyallaahu-anhu) that when he used to perform hajj or umrah, he would take hold of his beard (i.e. a fist) and cut the excess. As for the moustache, it is obligatory to trim it. Indeed, the Prophet (sallal-laahu-alayhi-wsallam) said:
”Trim the moustache and leave the beard, and be different from the fire worshippers.” [Reported by Bukhaari: No: 5892]
[Al-Fataawa-Wad-duroos Fil-Masjid al-Haraam: Page:157 of Shaikh Abdullaah Bin Muhammad Bin Humaid (rahimahullaah)]