Abu Hurairah reported,

I heard the Prophet ﷺ say, "A servant committed a sin," and sometimes he said, "committed a wrong," and said, "My Lord, I have sinned," and sometimes he said, "I have done wrong, so forgive me."His Lord said, "My servant knows that he has a Lord who forgives sins and holds people accountable for them. I have forgiven My servant."Then he remained as long as Allah willed, then he committed another sin, or did another wrong, and said, "My Lord, I have sinned again, so forgive it."He said, "My servant knows that he has a Lord who forgives sins and holds people accountable for them. I have forgiven My servant."Then he remained as long as Allah willed, then he committed another sin, and sometimes he said "did another wrong," and said, "My Lord, I have done wrong again, so forgive me."He said, "My servant knows that he has a Lord who forgives sins and holds people accountable for them. I have forgiven My servant three times, so let him do as he wishes."

Bukhari 7507

Sahih

حدثنا أحمد بن إسحاق حدثنا عمرو بن عاصم حدثنا همام حدثنا إسحاق بن عبد الله سمعت عبد الرحمن بن أبي عمرة قال سمعت

أبا هريرة قال

سمعت النبي ﷺ قال إن عبدا أصاب ذنبا وربما قال أذنب ذنبا فقال رب أذنبت وربما قال أصبت فاغفر لي فقال ربه أعلم عبدي أن له ربا يغفر الذنب ويأخذ به غفرت لعبدي ثم مكث ما شاء الله ثم أصاب ذنبا أو أذنب ذنبا فقال رب أذنبت أو أصبت آخر فاغفره فقال أعلم عبدي أن له ربا يغفر الذنب ويأخذ به غفرت لعبدي ثم مكث ما شاء الله ثم أذنب ذنبا وربما قال أصاب ذنبا قال قال رب أصبت أو قال أذنبت آخر فاغفره لي فقال أعلم عبدي أن له ربا يغفر الذنب ويأخذ به غفرت لعبدي ثلاثا فليعمل ما شاء

البخاري 7507صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
His saying, "They want to change the words of Allah"
Numbering
Darussalam 7507
Bukhari 7507