As a muslim we are taught to refrain from such acts as intercourse and masturbation. As of now I have absolutely no problem abstaining from sexual intercourse before marriage, as I find it pointless to commit such a sin for a very short period of time of pleasure, with problems it could lead to later on. But my problem is I cant seem to apply this to my acts of masterbation. I try to not perform this act as much as I can, but at times its like my testosterone levels go sky high. I feel like I have very little control over it. I have woken up many times unvoluntarily with the sudden urge just to masterbate which gets to the point where it is incredibly annoying. Just the other day I woke up close to 2pm and it was only later when i realised i had attemped to masterbate but had fallen asleep as to being extremely tired because of the day before which had caused me to sleep over 12 hours.I do not remember clearly (only a few seconds) but i know I had absolutely no control over it as I think my brain proccessed it as a dream.
What I am asking is how can I STOP doing this alltogether as i know it is a sin and I feel angry and annoyed after I do it and think I wont do it again, but most of the time it repeats over and over and its feels like its time to stop for sure.
By the way I seem to have no problem not doing it during Ramadan. ( sorry for any grammar errors. Mainly because of this problem I am forced to sleep very late).
As for curing the habit of masturbation, we recommend the following suggestions:
1) The motive to seek a cure for this problem should be solely following Allaah’s orders and fearing His punishment.
2) A permanent and quick cure from this problem lies in marriage as soon as the person is able, as shown in the Prophet’s hadeeth.
3) Keeping oneself busy with what is good for this world and the hereafter is essential in breaking this habit before it becomes second nature after which it is very difficult to rid oneself of it.
4) Lowering the gaze (from looking at forbidden things such as pictures, movies etc.) will help suppress the desire before it leads one to commit the haraam (forbidden). Allaah orders men and women to lower their gaze as shown in the following two verses and in the Prophet’s hadeeth (interpretations of the meanings):
"Tell the believing men to lower their gaze (from looking at forbidden things) and protect their private parts (from illegal sexual acts, etc.). That is purer for them. Verily, Allah is all-aware of what they do. And tell the believing women to lower their gaze (from looking at forbidden things) and protect their private parts (from illegal sexual acts, etc.) ..... " 24.30-31
Allaah’s messenger said: "Do not follow a casual (unintentional) look (at forbidden things) with another look." Al-Tirmidhi 2777. This is a general instruction by the Prophet to abstain from all that may sexually excite a person because it might lead him/her to commit the haraam (forbidden).
5) Using one’s available leisure time in worshipping Allaah and increasing religious knowledge.
6) Being cautious not to develop any of the medical symptoms that may result from masturbation such as weak eyesight, weak nervous system, and/or back pain. More importantly, feeling of guilt and anxiety that can be complicated by missing obligatory prayers because of the need to shower (ghusl) after every incidence of masturbation.
7) Avoiding the illusion that some youth have that masturbation is permissible because it prevents them from committing illegal sexual acts such as fornication or even homosexuality.
8) Strengthening one’s willpower and avoiding spending time alone as recommended by the Prophet when he said "Do not spend the night alone" Ahmad 6919.
9) Following the Prophet’s aforementioned hadeeth and fast when possible, because fasting will temper one’s sexual desire and keep it under control. However, one should not overreact and swear by Allaah not to return to the act because if one does not honor one’s promise, one would be facing the consequences of not living up to one’s oath to Allaah. Also, note that medication to diminish one’s sexual desire is strictly prohibited because it might permanently affect one’s sexual ability.
10) Trying to follow the Prophet’s recommendation concerning the etiquette of getting ready for bed, such as reading well-known supplications, sleeping on the right side, and avoiding sleeping on the belly (the Prophet forbade sleeping on the belly).
11) Striving hard to be patient and chaste, because persistence will eventually, Allaah willing, lead to attaining those qualities as second nature, as the Prophet explains in the following hadeeth: "Whoever seeks chastity Allaah will make him chaste, and whoever seeks help from none but Allaah, He will help him, and whoever is patient He will make it easy for him, and no one has ever been given anything better than patience." Bukhari:1469.
12) Repenting, asking forgiveness from Allaah, doing good deeds, and not losing hope and feeling despair are all prerequisites to curing this problem. Note that losing hope is one of the major sins punishable by Allaah.
13) Finally, Allaah is the Most Merciful and He always responds to whoever calls on Him. So, asking for Allah’s forgiveness will be accepted, by His will.
Wallahu a’lam. And Allah knows what is best and most correct.