Forgiveness from a human perspective, it is usually based on the person meeting some type of behavior or expectation. Forgiveness might be based on the person being sorry, expressing sorrow or performing some act of penance.
However with God, it is a different story. God‘s forgiveness hinges on two aspects of his character: lovingkindness and tender mercy.
Have mercy upon me, O God, according to thy lovingkindness: according unto the multitude of thy tender mercies blot out my transgressions. (Psalm 51:1)
Both of these traits stem from the love of God. The former relates to his actions toward men and the latter-meaning womb-reflects his emotional bond with us.
The remainder of Psalm 51 conveys attitudes and promises to declared by David, but without loving kindness and tender mercy, forgiveness would not even be considered.
Therefore, when you find yourself needing forgiveness don’t try to follow a pathway of penance or self restoration to a God of lovingkindness and tender mercy, but instead run to the throne of grace whereupon your loving and merciful God sits. From there, he will forgive and lead you to a place of restoration.