Islamic teachings about forgiveness are found in verses in the Qur'an, which strongly encourage Muslims to forgive wrongdoing.
The term used to forgive people who have done wrong is 'to pardon', just as Allah will forgive people on the Day of Judgement for things which they have done.
Muslims believe no person is perfect, and everyone is capable of wrongdoing and deserves forgiveness.
O you who have believed, indeed, among your spouses and your children are enemies to you, so beware of them. But ... if you pardon and overlook and forgive - then indeed, Allah is Forgiving and Merciful.Qur'an 64:14
And whatever strikes you of disaster - it is what your hands have earned; but he pardons much.Qur'an 42:30