All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and Messenger.
The preponderant scholarly opinion in our view is that it is absolutely impermissible to cease active life support by withdrawing it from a brain dead patient. However, if the person chooses to follow the other scholarly opinion suggesting the permissibility of such an act, then there is no harm in doing so. However, if he acknowledges the impermissibility of this act, then it is forbidden for him to do such a thing. He should not obey anyone’s orders in this case because he believes that this act is prohibited. This ruling applies in all cases in which a person is enjoined to do something. There is no obedience to creatures in what constitutes disobedience to the Creator, as according to the authentic hadith.
Allah knows best.