Always remember that you’re dealing with the Most Merciful and Most Compassionate (al-Rahman, al-Rahim). Allah Most High tells us in the Qur’an to never lose hope in Him, regardless of how badly we stumble, fall, err, or sin. He says:
“Say: My servants who have wronged yourselves, never despair of God’s mercy. God forgives all sins: He is truly the Most Forgiving, the Most Merciful.” [Qur’an, 39.53]
And the Messenger of Allah (peace and blessings be upon him) promised that, “The one who repents from sin is like one who never sinned.” [Ibn Maja]
The Way of Returning to Allah
The Messenger of Allah (peace and blessings be upon him) advised, “Be mindful of Allah wherever you may be. Follow a bad deed with a good deed, and it will wipe it out. And deal with people through upholding good character.” [Related by Tirmidhi]
In “following a bad deed with a good deed,” I would advise you to strive to follow the Prophetic sunna to, “Keep your tongue moist with the remembrance of Allah.” [Tirmidhi] In your walking, work, and rest. Engage your tongue, heart, and mind with the remembrance of Allah.
One way is to repeat the the “lasting good deeds” the Prophet (Allah bless him and give him peace) recommended: Subhana’l Llah; Alhamdu li’l Llah; la ilaha illa’l Llah; and Allahu Akbar. These can be recited in order or individually. Stay constant on them, and you’ll find peace of heart and increasing presence with Allah.
Allah Most High enjoins us:
“Hurry towards your Lord’s forgiveness and a Garden as wide as the heavens and earth prepared for the righteous, who give, both in prosperity and adversity, who restrain their anger and pardon people– God loves those who do good– those who remember God and implore forgiveness for their sins if they do something shameful or wrong themselves– who forgives sins but God?– and who never knowingly persist in doing wrong. The reward for such people is forgiveness from their Lord, and Gardens graced with flowing streams, where they will remain. How excellent is the reward of those who strive!” [Qur’an, 3.134-136]
And Allah alone gives success.