Other than urine, there are basically three types of discharges that are released from the male private organs:
Wadi (a thick white secretion immediately after uniration by some people)
Madhi (a sort of slow release of lubricant just prior to a full sexual discharge)
Mani (a full sexual discharge)
If only Wadi or Madhi is released, one does not require a ‘ghusl’ or full bath to purify himself; he must wash his private parts and the part of his clothes or body where the ‘wadi’ or ‘madhi’ has touched, do the wudu, and he would be available for prayer.
If Mani or full sexual discharge is released, then it becomes obligatory to perform a ‘ghusl’ or full bath to purify oneself.
If one experiences a wet dream in one’s sleep and notices that one has discharged ‘mani’, regardless of whether it happens to a male or a female, the performing of ‘ghusl’ would be obligatory on such a person.
If you notice mani spots on the bed and they are dry, you can sleep on it. The impurity will not transfer to your body in this case. Yes, if your body is wet and by sleeping on those spots the impurity will stick to your body, then your body will become impure. We suggest that you put a bed sheet over the bed and then sleep.
Sahih Muslim Hadith 566 Narrated by AishaA person stayed in the house of Aisha and in the morning began to wash his garment. Aisha said: ‘In case you saw it (i.e. semen), it would have served the purpose (of purifying the garment) if you had simply washed that spot; and in case you did not see it, it would have been enough to sprinkle water around it, for when I saw (dried) semen on the garment of the Messenger of Allah (saws), I simply scraped it off and he (saws) offered prayer, while putting that garment on.’
Sahih Al-Bukhari Hadith 1.229 Narrated by AishaI used to wash the traces of Janaba (semen) from the clothes of the Prophet (saws) and he (saws) used to go for prayers while traces of water were still on it (water spots were still visible on the garment).
As for masturbation, it is haraam.
Allah says in the Holy Quran Chapter 23 Surah Muminoon verses 1-11:
- The Believers must (eventually) win through2 Those who humble themselves in their prayers;3 Who avoid vain talk;4 Who are active in deeds of charity;5 Who scrupulously guard their modesty (private parts), 6 Except with those joined to them in the marriage bond, or (the captives) whom their right hands possess; for (in their case) they are free from blame.7 But those whose desires exceed those limits, are transgressors!8 Those who faithfully observe their trust and their covenants;9 And who (strictly) guard their prayers10 Those will be the heirs11 Who will inherit Paradise: they will dwell therein (forever).
The scholars of all schools of thought are unanimous in their opinion that the evil act of ‘masturbation’ would, without an iota of a doubt, fall under the category of ‘those whose desires exceed the limits’.