A friend of mine would like to know if it is haram to masterbate, and if it is why?

Answered according to Hanafi Fiqh by Askimam.org

a friend of mine would like to know if  it is haram to masterbate, and if it is why?
they  also would like to kn0w..if a person does masterbate due to the reason that it might cause them to perform zina are they allowed to masterbate..?


In the name of Allah, Most Gracious, Most Merciful

Assalaamu `alaykum waRahmatullahi Wabarakatoh

To have intercourse or release semen unlawfully is prohibited in Islam.  The Qur’an describes the qualities of true believers and as follows:


وَالَّذِينَ هُمْ لِفُرُوجِهِمْ حَافِظُونَ .  إِلَّا عَلَى أَزْوَاجِهِمْ أَوْ مَا مَلَكَتْ أَيْمَانُهُمْ فَإِنَّهُمْ غَيْرُ مَلُومِينَ . فَمَنِ ابْتَغَى وَرَاءَ ذَلِكَ فَأُولَئِكَ هُمُ الْعَادُونَ

And those who guard their private parts, except from their wives or from those (bondwomen who are) owned by their hands, as they are not to be blamed. However, those that seek (sexual pleasure) beyond that are the transgressors.  (23/5-7 & 70/29-31)


Ibn Kathir (ra) commenting on the above verse writes:

Imam Shaf’ee (ra) and those sharing the same view take proof from this verse on the impermissibility of masturbation and says, “The disgraceful act (of masturbating) is not from these two (lawful) options and the verse states that ‘those that seek sexual pleasure beyond that are the transgressors’”.

(Ibn Kathir (3/226) Dar al-Mufeed)


Allama Alusi (ra) in Ruh al-Ma’ani under this verse writes:

And there is a difference of opinion also on the issue of masturbation.  The majority of the Ulama are of the view of its prohibition.  And masturbation is included in the verse “and those that seek (sexual pleasure) beyond that…”


And there are those who have deduced the prohibition of masturbation from other sources for example what the Mashaykh have said from hadith of Rasulullah (Sallalahu Alaihi Wasallam):

ناكح اليد ملعون

Curse is upon those who have intercourse with their hands.


Saeed ibn Jubayr (ra) narrates:

Allah will punish those who fondle with their private parts.


Aata (ra) narrates that he heard:

A nation will be resurrected such that their hand will be pregnant.  I believe they are the ones that masturbate.  And Allah Knows Best.

(Ruh al-Ma’ani (9/213) Dar al-Kutub al-Ilmiyya)



Shariah recognizes the urge in youth to fulfill their carnal desires.  It is for this reason Rasullullah (Sallalahu Alaihi Wasallam) said:

عن عبد الله قال قال لنا رسول الله صلى الله عليه وسلم يا معشر الشباب من استطاع منكم الباءة فليتزوج فإنه أغض للبصر وأحصن للفرج ومن لم يستطع فعليه بالصوم فإنه له وجاء (متفق عليه)

‘Abdullah ibn Mas’ud narrates that Rasulullah (Sallalahu Alaihi Wasallam) said to us, “O youngsters, whom so ever amongst you are able to marry, then let him do so, for verily it helps lower the gazes and protects the private parts.  And who so ever does not have the ability to marry then let him fast, for it is a shield for him. (Sahih al-Bukhari & Sahih Muslim)



The Jurists have explained that if a person is in a situation where he is over powered by his desires and if he does not masturbate, and there is fear of him committing adultery, then it is hoped that he will be excused for masturbating.

Rad al-Muhtar (2/399) H.M. Saeed Company


وكذا الاستمناء بالكف وإن كره تحريما لحديث { ناكح اليد ملعون } ولو خاف الزنى يرجى أن لا وبال عليه …قال ابن عابدين: ( قوله : ولو خاف الزنى إلخ ) الظاهر أنه غير قيد بل لو تعين الخلاص من الزنى به وجب ؛ لأنه أخف وعبارة الفتح فإن غلبته الشهوة ففعل إرادة تسكينها به فالرجاء أن لا يعاقب


It should also be pointed out that a person should avoid any such act that will aggravate his desires.  He should lower his gaze, avoid mixed gatherings, avoid reading immoral literature, etc.  If one’s desires are aroused after guarding oneself from all forms of evil, then only will one be excused in an unavoidable situation.  The above ruling is not for a person who aggravates his desires and leads his passion to an unavoidable situation.  In that instance he will be sinful for leading himself to a point of aggravating circumstances of sexual desires and for masturbating.  For that he must repent for his sin and make effort to reform himself.

And Allah knows best


Ml. Ehzaz Ajmeri,
Student Darul Iftaa

Checked and Approved by:

Mufti Ebrahim Desai
Darul Iftaa, Madrassah In’aamiyyah