Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
nasai-kubra:10180ʿAmr b. Manṣūr > al-Ḥajjāj b. al-Minhāl > Ḥammād b. Salamah > Isḥāq b. ʿAbdullāh b. Abū Ṭalḥah > ʿAbd al-Raḥman b. Abū ʿAmrah > Abū Hurayrah

O Allah, forgive me my sins, and Allah (the Exalted and Glorious) said: My servant commited a sin and then he came to realise that he has a Lord Who forgives the sins and takes to account (the sinner) for the sin. He then again committed a sin and said: My Lord, forgive me my sin, and Allah, the Exalted and High, said: My servant committed a sin and then came to realise that he has a Lord Who would forgive his sin or would take (him) to account for the sin. He again committed a sin and said: My Lord, forgive me for my sin, and Allah (the Exalted and High) said: My servant sas committed a sin and then came to realise that he has a Lord Who forgives the sins or takes (him) to account for sin. O servant, do what you like. I have granted you forgiveness. 'Abd al-A'la said: I do not know whether he said thrice or four times to do" what you desire". (Using translation from Muslim 2758a)   

الكبرى للنسائي:١٠١٨٠أَخْبَرَنَا عَمْرُو بْنُ مَنْصُورٍ قَالَ حَدَّثَنَا الْحَجَّاجُ بْنُ الْمِنْهَالِ قَالَ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ عَنْ إِسْحَاقَ بْنِ عَبْدِ اللهِ بْنِ أَبِي طَلْحَةَ عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي عَمْرَةَ عَنْ أَبِي هُرَيْرَةَ

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


See similar narrations below:

Collected by Muslim
muslim:2758aʿAbd al-Aʿlá b. Ḥammād > Ḥammād b. Salamah > Isḥāq b. ʿAbdullāh b. Abū Ṭalḥah > ʿAbd al-Raḥman b. Abū ʿAmrah > Abū Hurayrah

O Allah, forgive me my sins, and Allah (the Exalted and Glorious) said: My servant commited a sin and then he came to realise that he has a Lord Who forgives the sins and takes to account (the sinner) for the sin. He then again committed a sin and said: My Lord, forgive me my sin, and Allah, the Exalted and High, said: My servant committed a sin and then came to realise that he has a Lord Who would forgive his sin or would take (him) to account for the sin. He again committed a sin and said: My Lord, forgive me for my sin, and Allah (the Exalted and High) said: My servant sas committed a sin and then came to realise that he has a Lord Who forgives the sins or takes (him) to account for sin. O servant, do what you like. I have granted you forgiveness. 'Abd al-A'la said: I do not know whether he said thrice or four times to do" what you desire".  

مسلم:٢٧٥٨aحَدَّثَنِي عَبْدُ الأَعْلَى بْنُ حَمَّادٍ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ عَنْ إِسْحَاقَ بْنِ عَبْدِ اللَّهِ بْنِ أَبِي طَلْحَةَ عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي عَمْرَةَ عَنْ أَبِي هُرَيْرَةَ

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