According to the Qur’an and Sunnah, it is haram (forbidden) to drink alcohol or alcoholic beverages. Even a small amount of alcohol is haram and it must be avoided. As for medicine containing alcohol, the basic ruling in normal circumstances is that it should be avoided unless there is a necessity and there is no alternative and it is prescribed by a trustworthy Muslim doctor. So, if a trustworthy Muslim Doctor prescribed such a medicine for you and the alternative does not give a good result, then there is nothing wrong in using it.
Elaborating more on this issue, we’d like to furnish you with the following fatwa issued by, Sheikh Muhammad Al-Mukhtar Ash-Shinqiti, director of the Islamic Center of South Plains, Lubbock, Texas, who states the following: “The basic rule in normal circumstances is to avoid the thing that has alcohol as ingredient. Therefore, if you have an alternative medication that is alcohol-free, then it is forbidden to use the alcohol-based one. This is based on the Prophet’s saying: “What intoxicates in big quantity, a small amount of its consumption is also forbidden” (At-Timidhi).
However, if no alternative is available, the fiqh councils have concluded that based on the rule of istihalah
, the alcohol-based medication is permissible. This is based on the fact that seeking medical treatment is necessary. It is reported that Prophet Muhammad (peace be upon him) allowed `Abdur-Rahman ibn `Awf to wear silk, which is forbidden for men, because he was suffering from scabies (a skin disease).”