Quran 39:53
Say, “O My servants who have transgressed against themselves [by sinning], do not despair of the mercy of Allah. Indeed, Allah forgives all sins. Indeed, it is He who is the Forgiving, the Merciful.”
Quran 4:110
And whoever does a wrong or wrongs himself but then seeks forgiveness of Allah will find Allah Forgiving and Merciful.
— Saheeh International
Quran 4:64
And We did not send any messenger except to be obeyed by permission of Allah. And if, when they wronged themselves, they had come to you, [O Muḥammad], and asked forgiveness of Allah and the Messenger had asked forgiveness for them, they would have found Allah Accepting of Repentance and Merciful.
— Saheeh International