I don't remember quite yet but since the past 3 years I been committing a sin that is very bad. I want to get rid of this act but I am failing despite that I am committed to my prayers and still seek repentance. I don't want to do it but something is pushing me so hardd to committ this sin and I want to stop myself but I am failing now its feeling like I am faraway from Allah swt and holy prophet and Ahlulbayt (a.s). What should I do now? How should I control myself to not to commit this? The sin that I am committing is masturbation and watching pornography.

Firstly it’s very good that you feel you have wronged and you want to stop.

Allah is all merciful. He will forgive you. You must believe this. But this act is damaging you badly. It’s worse than poison. Your future will be very negatively affected because of it.

Please watch this clip I did. Also another clip on pornography. You need to do what is recommended. Practice it and reward yourself with halal if you don’t do the haram. You must busy yourself as boredom makes you think of haram. Ultimately maybe marry temporary or permanent to save yourself and your religion. But don’t give up as Shaitan wants you to give up

https://youtu.be/y8pypvuw2u8
https://youtu.be/4ErJBv70VHU