Sacred Citation & SourceAllah says: "Say: O My servants who have transgressed against themselves, do not despair of the mercy of Allah. Allah forgives all sins" (39:53). The Prophet ﷺ said: "Every son of Adam sins, and the best of those who sin are those who repent" (Tirmidhi 2499, Ibn Majah 4251).
Sacred Citation & SourceScholars list the conditions of sincere repentance (tawba): stop the sin, regret it, resolve not to go back, and, if the sin wronged a person, return the right or ask for forgiveness (and for a debt or theft, give back what is due). Allah says: "Repent to Allah with a sincere repentance" (66:8). If you fall again, repent again: the door does not close until the soul reaches the throat (Tirmidhi 3537).
Sacred Citation & SourceThe Prophet ﷺ taught a prayer of seeking forgiveness (sayyid al-istighfar, Bukhari 6306). Never let shame keep you from returning. These are matters of the heart, not of rulings: take what helps you act and ask a qualified teacher if you are unsure.