Answer
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:
There is nothing wrong with having a heart valve transplant from a pig.
Answering your question, Dr. Jasser Auda, Professor and Al-Shatibi Chair of Maqasid Studies at the International Peace College South Africa, states:
There is no issue, Islamically, for a Muslim to receive a heart valve transplant from a pig.
The issue with pigs is in regard to eating the meat. It is not haram to use the animal for any of the other uses that the animal is used for.
Allah says:
{He has only forbidden to you dead animals, blood, the flesh of swine, and that which has been dedicated to other than Allah. But whoever is forced [by necessity], neither desiring [it] nor transgressing [its limit], there is no sin upon him. Indeed, Allah is Forgiving and Merciful.} (Al-Baqarah 2:173)
{Prohibited to you are dead animals, blood, the flesh of swine, and that which has been dedicated to other than Allah, and [those animals] killed by strangling or by a violent blow or by a head-long fall or by the goring of horns, and those from which a wild animal has eaten, except what you [are able to] slaughter [before its death], and those which are sacrificed on stone altars, and [prohibited is] that you seek decision through divining arrows…} (Al-Ma’idah 5:3)
In another verse we read:
{Say, “I do not find within that which was revealed to me [anything] forbidden to one who would eat it unless it be a dead animal or blood spilled out or the flesh of swine – for indeed, it is impure – or it be [that slaughtered in] disobedience, dedicated to other than Allah . But whoever is forced [by necessity], neither desiring [it] nor transgressing [its limit], then indeed, your Lord is Forgiving and Merciful.”} (Al-An`am 6:145)
So the meat of the pigs is dirty in the spiritual sense, and this is why we do not eat that meat.
Using the pig for a different benefit including the pig’s leather or part of the pig for medical needs such as the heart valve transplant is something that actually has no scripts related to it in the Shariah. It all depends on how beneficial the operation will be.
May Allah grant you health and complete recovery.
Almighty Allah knows best.