أَخْبَرَنَا أَبُو عَبْدِ اللَّهِ الْحَافِظُ وَأَبُو سَعِيدِ بْنُ أَبِي عَمْرٍو قَالَا : حَدَّثَنَا أَبُو الْعَبَّاسِ الْأَصَمُّ ، حَدَّثَنَا مُحَمَّدُ بْنُ إِسْحَاقَ ، حَدَّثَنَا يُونُسُ بْنُ مُحَمَّدٍ ، حَدَّثَنَا عُمَرُ بْنُ أَبِي خَلِيفَةَ ، حَدَّثَنِي أَبُو بَدْرٍ ، عَنْ ثَابِتٍ الْبُنَانِيِّ ، عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ : جَاءَ رَجُلٌ فَقَالَ : يَا رَسُولَ اللَّهِ إِنِّي أَذْنَبْتُ قَالَ : " اسْتَغْفِرْ رَبَّكَ " قَالَ : فَأَسْتَغْفِرُ ثُمَّ أَعُودُ ، قَالَ : " فَإِذَا عُدْتَ فَاسْتَغْفِرْ رَبَّكَ " - ثَلَاثَ مَرَّاتٍ أَوْ أَرْبَعًا شَكَّ عُمَرُ فَقَالَ : " اسْتَغْفِرْ رَبَّكَ حَتَّى يَكُونَ الشَّيْطَانُ هُوَ الْمَحْسُورُ " .
أَبُو بَدْرٍ هَذَا هُوَ بَشَّارُ بْنُ الْحَكَمِ الْبَصْرِيُّ .
Sayyiduna Anas bin Malik (may Allah be pleased with him) narrates that a man came and said: "O Messenger of Allah, I have committed a sin." He (peace and blessings be upon him) said: "Seek forgiveness from your Lord." He said: "I seek forgiveness, then I return (to the sin)." He (peace and blessings be upon him) said: "Whenever you return, seek forgiveness from your Lord." Three or four times (he said it; Umar was unsure). Then he said: "Keep seeking forgiveness from your Lord until it is Satan who is worn out and defeated."
This Abu Badr is in fact Bashshar bin al-Hakam al-Basri (may Allah have mercy on him).