Why and how to stop
I feel like I see a pattern in when I do it but I don't know how to stop or why I do it.
Usually whenever things are going really well or I'm not stressed or worried about something, I let myself go and masturbate. I used to do it frequently, way too frequently but I've tried to stop myself and come pretty far. But whenever there's something new I am working on either at work, learning or just personal issues and it succeeds and I'm happy during the day, I catch myself scrolling and then thinking about watching porn and masterbation and finally do it and feel guilty afterwards...
I also don't fully understand how it is haram. If something isn't explicitly said to be fully permitted or fully forbidden we're supposed to use our intelligence Allah gave us and use it to make decisions for ourselves.