Masturbation will not be included if ejaculation is due to sexual desire. Masturbation is also commonly referred to as masturbation as the man rubs his penis and the woman rubs her vagina mainly with the help of hands. The basic technique of masturbation is the same for both sexes , and that is to move and rub the genitals and adjacent areas. It can be by finger or by anything. But if a person suddenly has sexual thoughts in his mind or a sexually provocative thought that he did not think of spontaneously, then if he ejaculates, it will not include masturbation. In this case, the ruling is that you have to purify yourself by taking a compulsory bath thinking that you have had nightmares.