Mishkat al-Masabih 2333
Supplications
Prayer for Pardon, and Repentance - Section 1
Abu Huraira said that God’s messenger told of a man who committed a sin and said, "My Lord, I have sinned, so forgive me.” His Lord replied, “Does my servant know that he has a Lord who pardons sin and punishes for it? I have pardoned my servant." After remaining [obedient] such time as God willed he committed a sin and said, “My Lord, I have sinned, so forgive me.” His Lord replied, “Does my servant know that he has a Lord who pardons sin and punishes for it? I have pardoned my servant.” Then after remaining [obedient] such time as God willed he committed a sin and said, “My Lord, I have committed another sin, so forgive me.” He replied, “Does my servant know that he has a Lord who pardons sin and punishes for it? I have pardoned my servant, so let him do what he likes.” (Bukhari and Muslim.)