In The Quran
Like many other topics, the act of atoning (for one’s misdeeds) and seeking Allah’s forgiveness has also been discussed in the Quran with much importance. For those believers who have wronged themselves, the Qur'an asks them to become repentant, seek Allah’s forgiveness, and make a sincere tawba, and assures them that if they do this, Allah will forgive them, and exonerate them from their misdeeds:
And O ye Believers! turn ye all together towards Allah, that ye may attain Bliss. —Quran, Sura 24 (Al-Noor), ayah 31 O ye who believe! Turn to Allah with sincere repentance, in the hope that your Lord will remove from you your ills and admit you to Gardens beneath which Rivers flow... —Quran, Sura 66 (Al-Tahrim), ayah 08 Surely Allah loves those who turn much (to Him), and He loves those who purify themselves. —Quran, Sura 02 (Al-Baqara), ayah 222The Qur'an also addresses the disbelievers and urges them to turn to Allah, upon which Allah promises to pardon them:
The Penalty on the Day of Judgment will be doubled to him (disbeliever), and he will dwell therein in ignominy,- unless he repents, believes, and works righteous deeds, for Allah will change the evil of such persons into good, and Allah is Oft-Forgiving, Most Merciful. And whoever repents and does good has truly turned to Allah with an (acceptable) conversion. —Quran, Sura 25 (Al-Furqan), ayah 69-71Read more about this topic: Repentance In Islam