The vast majority of the Scholars, including the 4 Imams, have ruled that having a beard is mandatory for men. The only debate amongst them is in regards to the length of the beard.There are a few scholars in our history that have said it is not sinful to shave but they are a tiny minority.

The ahadeeth on the subject are clear as Ibn Omar (ra) said that the Messenger of Allah commanded us to "Trim the mustache and leave the beard to grow." (Agreed Upon)

The Prophet (peace be upon him) never specified a punishment for not having a beard but by virtue of him commanding us to grow it, it would be sinful and punishable to shave.

And Allah knows best.

Answered by Shaykh Omar SuleimanHadith of the Day ImamDirector – Islamic Learning Foundation