Ejaculating in your sleep, also known as nocturnal emissions or wet dreams, is not considered haram in Islam.
It is a natural physiological process that occurs during puberty and is not under a person's conscious control.
Islamic scholars emphasize that actions are judged based on intent, and since nocturnal emissions are involuntary, they are not considered sinful.
The Prophet Muhammad (peace be upon him) himself mentioned this, saying, "If a man has a dream, he should not tell it." (Sahih Muslim)
This indicates that even if a dream involves sexual content, it is not considered a sin as long as it is involuntary.
However, it is important to note that excessive indulgence in sexual thoughts and fantasies during waking hours can lead to increased frequency of nocturnal emissions, which may be undesirable.
Therefore, it is recommended to engage in activities that promote spiritual and mental well-being, such as prayer, reading the Quran, and seeking knowledge, to minimize the occurrence of such dreams.
In summary, nocturnal emissions are not considered haram in Islam. They are a natural physiological process that occurs during puberty and is not under a person's conscious control.