The Ruling on Obeying Parents Who Forbid their Children from Keeping Company with the Righteous
Question :
If father orders me to forsake the company of righteous friends and to not travel with them to perform 'Umrah, do I have to obey him in this regard? Keep in mind, though, that I am on my way to becoming a practicing Muslim.
Answer:
You do not have to obey them in what is disobedience to Allah or in what harms you. The Prophet ﷺ said:
"Indeed, obedience is only in what is good."
He ﷺ also said,
"There is no obedience to the creature in disobedience to the Creator."
Don't obey someone who forbids you from the company of the righteous, whether it is your father or anybody else. Also, don't obey somebody who orders you to keep evil or bad company. Nevertheless, speak kind words to your father, words that are gentle. Say to him, "O my father, these are good people, from whom I derive benefit. My heart softens and I gain knowledge when I am with them." Speak kind words to your parents, not harsh.
If they still forbid you, don't tell them that you keep company with the righteous, don't tell them that you are going with these people, whom they are not happy with. You must not obey them in anything except what is obedience (to Allâh) and good, and if they order you to accompany evil people or they order you to smoke or drink or to commit fornication, or some other acts of disobedience, then do not obey them, nor anyone else in such matters. The previous two sayings of the Prophet establish this clearly. And with Allah is the facilitation to do what is right.
Source:
Ibn Baz
Fatawa Islamiyah, Vol. 7 Pages 327-328