All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger. We ask Allaah to exalt his mention as well as that of his family and all his companions.
It is permissible for a Muslim to use or consume the medicine which his doctor prescribes for him even if he does not know its ingredients. In principle all things are permitted, and investigating the ingredients of a medicine could cause hardship and difficulty. Allaah Says (what means): {…and has not placed upon you in the religion any difficulty.}[Quran 22:78]. However, if a Muslim knows that this medicine contains what is forbidden like dead meat, pork or any other impure ingredient, then it is not permissible for him to use or consume it.
Allaah Knows best.