Sexual arousal may drive a person to masturbation. Such a person should know, however, that he majority of the scholars consider this practice unlawful. This ruling is based on the Words of Allah (SWT) Who says:
"And those who guard their chastity (i.e. private parts, from illegal sexual acts) Except from their wives or (the captives and slaves) that their right hands possess, - for them, they are free from blame; But whoever seeks beyond that, then those are the transgressors." (Al-Muminun 23:5-7)
The one who masturbates is considered among those who crave something beyond that in the verse.
A Muslim should therefore resist this temptation by avoiding anything that leads to sexual arousal. The Prophets (SAW) advice to the Muslim youth is to seek help through frequent fasting, for it strengthens the fear of Allah (SWT), teaches self control, and cools ones desires.
Information from Al-Jumuah Magazine Issue 5, Shabaan 1416, Page16