Hey, Not religious myself so can’t relate to the sin part. But it sounds like a good first step is to identify why you have insomnia. Are you using electronics late/in bed? Screens tend to wake us up. Or are you stressing about anything? Maybe meditation. I've very bad at getting enough sleep myself, what works for me is to leave all electronics outside my bedroom about 8-9 hours before I'm getting up. Then reading a book or newspaper (printed, nothing electronics) really gets me to not think about a bunch of other things. Whatever you do you have to get out of the mindset of using PMO as a stress reliver. It's very common. It was/is for me as well. But it's obviously a vicious cycle. Force yourself to be rational, knowing that if you skip PMO, go to bed early, read and relax you will quickly start to feel clearer and more focused. I used to stay up till 3-4 am when I had to get up at 6 am, edging to porn. Obviously edging for 5 hours and then orgasming, sleeping poorly for 2-3 hours and then getting up made me feel absolutely miserable. Couldn't focus, couldn't properly be social. So I see where you are coming from. But you have to break the cycle one day at a time. Stay busy until you go to bed, read a book and try to sleep. It should come with time. If you do all that and you STILL have insomnia you should see a doctor. But I would try the above first because nobody sleeps well if they are watching screens, PMO'ing and not going to bed.