Answer
(Fatwa: 1658/1194/L=1431)
It is not haram to eat, drink or touch eatables after ihtilam (wet dream) or masturbation before taking a bath. However, one should wash one’s hands and mouth before eating food. It is makrooh tanzihi to eat without washing hands and mouth.
Firm intention is necessary to control nafs and to get rid of bad habits. When one desires bad things, it is necessary to control the nafs and remind him of the hell. All these desires are immortal and Almighty Allah has promised jannah if one shuns them. If it is not controlled in this temporary world, one has to suffer its consequences forever. Until one does not control one’s nafs, dua or dhikr will not work. Hence, you should try to control yourself fully. Keep on fasting extensively and go to jama’ah for four months. After hearing the fazail in-sha-Allah, your heart will tend to good deeds and by hearing the punishments you will start hating the bad deeds.
Allah (Subhana Wa Ta’ala) knows Best
Darul Ifta,
Darul Uloom Deoband