Allah says, interpretation of meaning,
(Say – O Messenger - O My slaves who have committed excesses against their own souls! Do not despair of the mercy of Allah. Indeed, Allah forgives all sins. Indeed, He is the all-forgiving, the all-merciful.)
Allah, be exalted, commanded His Messenger Muhammad ﷺ to inform His slaves, who persist in committing sins by following what their own selves desire of wrongdoing and transgression, not to despair of the mercy of Allah because of the multiplicity of their sins. Indeed, Allah forgives all sins of whoever repents, as He is the forgiver of the sins of His repenting slaves, the one who bestows mercy on them.