Nocturnal emission is not a sin in Islam. Moreover, whereas a person fasting (in Ramadan or otherwise) would normally be considered to have broken their fast by ejaculating on purpose (during either masturbation or intercourse), nocturnal emission is not such a cause. They are still required to bathe prior to undergoing some rituals in the religion. Muslim scholars consider ejaculation something that makes one temporarily ritually impure, a condition known as junub; meaning that a Muslim who has had an orgasm or ejaculated must have a ghusl.
