The Ruling on Bequeathing the Organs of the Body
In our view this is not permissible before death, nor after death, even if the deceased were to make a bequest for them and say: When I die, give the clear part of my eyes (the cornea), or my kidney, or my liver, etc., to someone.
It is not permissible to act on such a bequest, because it is a bequest to do something forbidden, and a bequest to do something forbidden is not carried out. The scholars have mentioned this; see the Hanbali fiqh book “Al-Iqna'”, Kitab al-Jana’iz, section: Washing the Deceased. You will find its details there.
The scholars have stated in clear words that it is not permissible to take anything from the organs of the deceased, even if he made a bequest for it. They took as evidence this hadith of the Prophet ﷺ: “Breaking the bone of a deceased person is like breaking it while he is alive.”
How can this be permissible? You are free with regard to your own self, Allah the Exalted says:
«وَلَا تَقْتُلُوا أَنفُسَكُمْ ۚ إِنَّ اللَّهَ كَانَ بِكُمْ رَحِيمًا»
“And do not kill yourselves. Indeed, Allah has always been Most Merciful to you.”
Killing oneself does not mean that you take a knife and slaughter yourself; rather, every act that causes harm to the soul is included in killing oneself.
As evidence, this hadith of the Prophet is also presented:
Amr ibn al-As (may Allah be pleased with him) was sent by the Messenger ﷺ on a military expedition. One night he became junub (in a state of major impurity); it was a cold night. He performed tayammum and led his companions in prayer. When he returned and presented himself before the Prophet ﷺ, the Prophet ﷺ said:
Did you lead your companions in prayer while in a state of janabah?
He says: I said: O Messenger of Allah! I remembered the saying of Allah the Exalted:
«وَلَا تَقْتُلُوا أَنفُسَكُمْ ۚ إِنَّ اللَّهَ كَانَ بِكُمْ رَحِيمًا»
“And do not kill yourselves. Indeed, Allah has always been Most Merciful to you.”
The night was extremely cold, so I performed tayammum and led the prayer. The Prophet ﷺ laughed.
Was it in approval or in disapproval? In approval, because had he disapproved, he would have admonished him.
Therefore I say: Transferring organs is forbidden, both during life and after death.