Zoheir Ali Esmail, Shaykh Zoheir Ali Esmail has a Bsc in Accounting and Finance from the LSE in London, and an MA in Islamic Studies from Middlesex University. He studied Arabic at Damascus University and holds a PhD... Answer updated 1 year ago

Bismillah

Thank you for your question. Masturbating is a sin related to animalistic desires and so its punishment in the hereafter would be linked to that, as all sins have consequences and punishments that are suitable for them. Masturbation is a sin punishable in this world as well, and it is narrated that Imam Ali (as) punished a man for it by hitting his hand until it became red, and then got him married, paying for the marriage out of the treasury.

As for stopping, masturbation is a habit and like any other habit, stopping is a process, which requires determination and persistence. As a starting point a person should get rid of all aids, such as photos, movies, being on the wrong social media groups etc.
 

It is helpful if they can get married, or if not that they take up fasting on a regular basis. There are communities of people who are giving up frapping (another word for masturbation) so seeking support from such groups may be helpful for some. The most important thing is not to get discouraged if you slip, but to make sure that slips are as irregular as possible and to know that masturbation has a number of negative consequences, especially for a person's sex life later on. With determination many people have found their way out of frapping with a positive result on their lives and spirituality. 

May you always be successful.