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.
tabarani:7096Samurah b. Jundub

[Machine] "That the Messenger of Allah ﷺ used to say, 'The Bani Ghifar and the Muslims were like a trial among the people.' They would say, 'If they were good, Allah would not have put them ahead of us.' And it (i.e., Bani Ghifar) is a source of forgiveness. Allah forgave it, and Islam brought peace to it.'"  

الطبراني:٧٠٩٦وَبِإِسْنَادِهِ عَنْ سَمُرَةَ بْنِ جُنْدُبٍ ؓ

أَنَّ رَسُولَ اللهِ ﷺ كَانَ يَقُولُ بَنُو غِفَارٍ وَأَسْلَمُ كَانُوا كَكَثِيرٍ مِنَ النَّاسِ فِتْنَةً يَقُولُونَ لَوْ كَانَ خَيْرًا مَا جَعَلَهُمُ اللهُ أَوَّلَ النَّاسِ فِيهِ وَإِنَّهَا غِفَارٌ غَفَرَ اللهُ لَهَا وَأَسْلَمُ سَالَمَهَا اللهُ  


See similar narrations below:

Collected by Aḥmad
ahmad:16517ʿAbd al-Ṣamad > ʿUmar b. Rāshid al-Yamāmī > Iyās b. Salamah b. al-Akwaʿ from his father

To the tribe of Aslam Allah has granted safety and to the tribe of Ghifar Allah has granted pardon. Verily it is not I that say this, but (it is) Allah the Exalted and Glorious. (who) says this. (Using translation from Muslim 2516)   

أحمد:١٦٥١٧حَدَّثَنَا عَبْدُ الصَّمَدِ قَالَ حَدَّثَنَا عُمَرُ بْنُ رَاشِدٍ الْيَمَامِيُّ قَالَ حَدَّثَنَا إِيَاسُ بْنُ سَلَمَةَ بْنِ الْأَكْوَعِ عَنْ أَبِيهِ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ أَسْلَمُ سَالَمَهَا اللهُ وَغِفَارٌ غَفَرَ اللهُ لَهَا أَمَا وَاللهِ مَا أَنَا قُلْتُهُ وَلَكِنَّ اللهَ قَالَهُ