Masturbation is haram. Also, it may cause many types of diseases. If you have strong feeling of sex, you should marry as soon as possible. Until there is no arrangement for marriage, keep fast more often and avoid looking at women and obscene pictures. Recite the Holy Quran as much as you can, remember death and recall the punishment of Allah. Get the company of pious people. Also, go to Jamat for 40 days or four months. These acts will strengthen your iman.
Allah (Subhana Wa Ta’ala) knows Best
Darul Uloom Deoband