Sex in Islam
Masturbation: Comments by the Sahabah
The following article is reprinted from the Renaissance Islamic Journal, http://www.renaissance.com.pk/
Answer: There is no explicit directive of the Shari`ah which forbids masturbation. In other words, it is silent on this issue. Consequently, it cannot be regarded as a sin. The verses from which its prohibition is usually derived, I am afraid, have another meaning (than that commonly ascribed).
The opinions of some of the companions of the Prophet (saws) reproduced below from Ibn Hazams al-Muhalla (Vol:11, pp. 393-4) indicate that (while they may have discouraged it) they did not forbid it:
Jaabir Ibn Zayd:
At best, masturbation can be termed as an undesirable act similar in nature to the emotions of anger and hate. Such emotions are generally against good conduct, and a person should try to control them as much as possible. However, there may be situations when they may play a somewhat positive role -- especially when they save you from a sin.