Ruling on masturbation for medical purposes


I suffer from a disease that makes me unable to have sexual intercourse with my wife. I have been married for three years during which I have had a normal marital life like that of any married couple. However, I suddenly developed this case of being unable to have intercourse with my wife and without any apparent disease or reason. When I consulted a doctor, he asked me to bring him a sample of my Maniy (sperm), but I could not discharge any, and I do not know whether it is permissible to masturbate or not. Kindly enlighten us, and may Allah reward you!


Masturbation is Haram (prohibited), for Allah (Exalted be He) says: “And those who guard their chastity (i.e. private parts, from illegal sexual acts) Except from their wives or (the slaves) that their right hands possess, - for then, they are free from blame;” [al-Mu’minun: 5-6]

In addition, this practice has harmful side effects. The doctor can use a needle to extract Maniy directly from your testes, for example. This is a permissible way instead of you having to masturbate. However, if it is the only way to get Maniy and reach a treatment according to a specialist’s medical report, then it is permissible in this case. On the other hand, you should try other forms of treatment, such as electric therapy, taking vitamins, and the like. May Allah heal you and keep you safe!

May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.

  • Date: Muharram 10, 1442 AH
  • Source: Fatawa Al-Lajnah Ad-Da'imah no. 1376
  • Muftis: Shaykh Abdul-'Aziz ibn Baz , Shaykh Abdul-Razzaq al-Afify , Shaykh Abdullah ibn Ghudayyan , Shaykh Abdullah ibn Qa'ud