Wa `alaykum as-Salamu wa Rahmatullahi wa Barakatuh.
In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
In this fatwa:
1- Generally speaking, there should no obedience for people, including parents, once their requests contradict those of Allah and His messenger.
2- However, every son should gently and politely approach his parents trying to convince them not to put their requests in comparison with the acts of the Sunnah that every Muslim should follow.
Responding to your question, let’s cite the following fatwa published on: islamqa.info:
The basic principle is that the parents have no right to object to their child following the Sunnah and noble Prophetic teachings, whether those Sunnahs have to do with the rights of Allah and acts of worship, or interactions with other people, morals and manners.
The Islamic texts which enjoin obedience to parents are based on the requirement to treat them kindly, take care of them, look after their affairs and avoid upsetting them, even by one’s words. There is nothing in those texts to suggest that the son should obey their instructions outside of this framework. There is nothing in the texts either to suggest that obedience to them should be given precedence over obedience to Allah and His Messenger.
Imam As-Sarkhasi (may Allah have mercy on him) said, “With regard to any journey that a man wishes to undertake, apart from jihad, whether it is for the purpose of trade or Hajj or `Umrah, if his parents object to that, and he does not fear that they may be neglected and face hardship during his absence, then there is nothing wrong with him to travel.
That is because in most cases such journeys are safe, and they will not experience severe hardship as a result of his departure. Grief at his absence is warded off by the hope of his safe return. But if there is any fear of danger to him in that journey, such as if he travels by sea, then the ruling is the same as the ruling on his going out for jihad, because the danger of death in that case is more obvious.
With regard to travelling for the purpose of acquiring knowledge, if the route is safe, and it seems that the place to which he is heading is safe, then it is not different from travelling for trade. In fact, this is more important, because Allah Almighty says, “Out of each community, a group should go out to gain understanding of the religion.” (At-Tawbah 9:122)
So, there is nothing wrong with him going out for that purpose, even if his parents object, so long as there is no fear of them being neglected and facing hardship in his absence.” (Sharh as-Siyar al-Kabeer)
Sheikh Abu Bakr at-Tartushi said in his book Birr al-Walidayn, “There is no obedience to parents with regard to giving up a regular Sunnah, such as attending prayers in congregation, or not praying the two rak`ahs before Fajr, or witr Prayer, and so on, if they ask him to give that up on a permanent basis.
This is unlike the case if they call him when the time for the Prayer begins; in that case it is obligatory to obey them, even if he misses out on the virtue of praying when the time for the prayer first begins.(Al-Mawsu`ah al-Fiqhiyyah al-Kuwaitiyyah)
However, a son should excuse himself to his parents by speaking kindly and in a good manner, discussing the matter politely, so as to avoid worse problems.
In all of that, he should affirm to his parents the virtue of the Prophet’s Sunnah and the etiquette prescribed in Islam, and he should make up for not obeying them in that matter by serving them in other ways, giving them a gift, or compromising in some other matters, so that he may reassure them.
Regardless of whether shaving off the beard is haram or makruh, neither the parents nor anybody else has the right to issue instructions that are contrary to the command of Allah and His Messenger. The Prophet (peace and blessings be upon him) instructed that the beard should be allowed to grow in more than one hadith.
An exception to that is if letting the beard grow in some country maybe a direct cause of exposing one to persecution and danger. In that case, we would advise him to listen to his parents’ request out of mercy and compassion towards them, so that no hardship will befall him that would cause them distress.
Allah Almighty knows best.