1)Confess yourself to Allah every time; Agree within yourself that you have done something wrong cause nobody can hide from Allah.
Quran 67:14 “ How could He who created not know His own creation when He alone is Most Subtle in His wisdom and All Aware”
Keep repenting and take active means to get yourself out of it (c number 3) Quran 2:222 “..Indeed, Allah loves those who are constantly repentant and loves those who purify themselves."
2)Believe that Allah will continue to forgive you every time you sin and show sincerity in your repentance. Quran 8:33 “.... and Allah will not punish them while they seek forgiveness” Sayton likes to trick people into believing that they are too dirty to ask for forgiveness or sins are too big for Allah to forgive.Quran 85:14 “And HE is THE Most Forgiving, the Lovable One”
3)Try to identify the root of the sin; ask yourself why you do the things you do. For instance if it’s zina then it’s cause you are in a relationship that’s not good for you so speak with your partner that you want to get out of it. If his/her response is negative, you have to run. Quran 13:11 “Indeed Allah will change the consolation of a person until they change what is in themselves”
4)Develop intimacy with Allah; do a lot of dhikr, voluntary fast, read the Quran a lot. Quran 13:28 “Surely in the remembrance of Allah do heart find rest”
5)Don’t be proud of your sin; For instance, if your sin is drinking alcohol repeatedly, it’s best not to take a picture of yourself and post it on social media. It’s always nice to keep the bad habit between yourself and Allah till you get out of it.
Abu Hurayrah (may Allaah be pleased with him),said: I heard the Messenger of Allaah (sallallaahu ‘alayhe wa sallam) saying:
“All of my ummah will be excused, except for the mujaahireen (those who make their sins known). And verily it is a kind of mujaaharah (exposing one’s sins) that a man does something (sinful) at night, and then in the morning, when Allaah has screened his sin for him, he says, ‘Hey So and So, I did such last night’’And the night passed with His Lord screening him, and he wakes up casting aside the screen of Allah from himself.” (Muslim)