Hadith on Tawbah: Allah forgives if they keep repenting

Abu Huraira reported: The Prophet, peace and blessings be upon him, said, “A servant committed a sin and he said: O Allah, forgive my sin! Allah Almighty said: My servant has committed a sin and he knows that he has a Lord who forgives sins and holds him accountable. Then, the servant returned to his sin and he said: O Allah, forgive my sin! Allah said: My servant has committed a sin and he knows that he has a Lord who forgives sins and holds him accountable. Then, the servant returned to his sin and he said: O Allah, forgive my sin! Allah said: My servant has committed a sin and he knows that he has a Lord who forgives sins and holds him accountable, so do what you wish as I have forgiven you.”

Source: Ṣaḥīḥ al-Bukhārī 7507, Ṣaḥīḥ Muslim 2758

Grade: Muttafaqun Alayhi (authentic) according to Al-Bukhari and Muslim

عَنْ أَبِي هُرَيْرَةَ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِيمَا يَحْكِي عَنْ رَبِّهِ عَزَّ وَجَلَّ قَالَ أَذْنَبَ عَبْدٌ ذَنْبًا فَقَالَ اللَّهُمَّ اغْفِرْ لِي ذَنْبِي فَقَالَ تَبَارَكَ وَتَعَالَى أَذْنَبَ عَبْدِي ذَنْبًا فَعَلِمَ أَنَّ لَهُ رَبًّا يَغْفِرُ الذَّنْبَ وَيَأْخُذُ بِالذَّنْبِ ثُمَّ عَادَ فَأَذْنَبَ فَقَالَ أَيْ رَبِّ اغْفِرْ لِي ذَنْبِي فَقَالَ تَبَارَكَ وَتَعَالَى عَبْدِي أَذْنَبَ ذَنْبًا فَعَلِمَ أَنَّ لَهُ رَبًّا يَغْفِرُ الذَّنْبَ وَيَأْخُذُ بِالذَّنْبِ ثُمَّ عَادَ فَأَذْنَبَ فَقَالَ أَيْ رَبِّ اغْفِرْ لِي ذَنْبِي فَقَالَ تَبَارَكَ وَتَعَالَى أَذْنَبَ عَبْدِي ذَنْبًا فَعَلِمَ أَنَّ لَهُ رَبًّا يَغْفِرُ الذَّنْبَ وَيَأْخُذُ بِالذَّنْبِ اعْمَلْ مَا شِئْتَ فَقَدْ غَفَرْتُ لَكَ

7507 صحيح البخاري كتاب التوحيد باب قول الله تعالى يريدون أن يبدلوا كلام الله

2758 صحيح مسلم كتاب التوبة باب قبول التوبة من الذنوب وإن تكررت الذنوب والتوبة