Masturbation and Pornography

Giving up masturbation

Q: I have a problem (of making ghusal farz by hands) for the last 5 years. I have tried my best to leave it. Once, I have been able to leave it for 3 months but after that I was caught by it again. I have asked forgiveness every time from Almighty Allah and alhmdulillah He has blessed me every time, but I couldnt leave the sin.

I am average in ibadaat. Sometimes I perform salaah 5 times a day for a month or few months and sometimes I leave it out for a few days and sometimes I dodge a few prayers.

Kindly tell me a simple and easy solution to leave out this sin.