If you are having a very difficult time overcoming sins (whatever it maybe), no matter how much you tried to refrain from it and you gave in each time despite trying your hardest to leave it for Allah but you failed every time. I will advise you with two things & you will find the most strongest and closest connection with Allah.
Firstly, when you commit the sin, seek Allah’s forgiveness as soon as possible. As soon as you realise you have sinned, seek His forgiveness there and then. Don’t give second thoughts about your intentions (stop thinking you will fall into it again) or doubt Allah’s mercy towards you. Just block out everything, breathe in and out until you are relaxed and spend 5 minutes speaking to Allah. Acknowledge your mistake, promise not to do it again, avoid that which brings you to the sin and ask for forgiveness.
After you have done this, don’t think about whether Allah has forgiven you or not. Allah wants to forgive you that’s why He guided you to seek His forgiveness in the first place.
Secondly & this point is very important if you cannot let go of the sin. If you keep falling into this sin, INCREASE YOUR GOOD DEEDS. You done one sin? Do 3 good deeds. You done it again? Increase another 3 good deeds. Don’t focus on the sin here, focus on doing good deeds, why? Because good deeds please Allah, it will bring you closer to Him & they erase bad deeds.
You feel low and filthy because you sinned? Increase your good deeds, let that guilt motivate you to rush you to good so Allah’s mercy and forgiveness reaches you. Allah’s forgiveness is far greater than your sins so let your book of good deeds be greater than your sins too.
Open the Quran & read, cook for your siblings, give them water. Smile at your parents, spend time with them. Help your friend with something, teach someone a Hadith. Give Salam to a stranger. Give charity to the needy.
So if you keep falling in sins, forget the sin. Focus on your good deeds. Sometimes it is in the depths of our sins we find Allah and know Him more than ever.
Shaytaan will do his best to stop you from doing good but do not listen to him, he’s your enemy. He does not want you to have hope in Allah. When you find him whispering to you, remind yourself that perhaps through my sins Allah will bring me close to Him. Perhaps because of my sins, I’m increasing on good deeds which I couldn’t have done otherwise.
Perhaps the effort of striving to please Allah, seek His forgiveness and increase in good deeds will make you a beloved friend of Allah. You are better than your sins, don’t you ever let them get you down. Your Lord is Forgiving, The Most Forgiving, The Pardoner, The Acceptor of repentance, The One who conceals faults. Our Lord is amazing, He loves you so much so love Him back. That’s His right over you, He never gives up on you so please never ever give up on Allah & His mercy.