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.
muslim:2505Isḥāq b. Ibrāhīm al-Ḥanẓalī And ʾAḥmad b. ʿAbdah Wa-al-Lafẓ Lʾisḥāq > Sufyān > ʿAmr > Jābir b. ʿAbdullāh > Fīnā Nazalat Idh Hammat Ṭāʾifatān Minkum

Jabir b. Abdullah reported that it was concerning them (the Ansar) that this verse was revealed, that when the two groups amongst you were about to lose heart and Allah was the Guardian of them both. This concerned Banu Salama and Banu Haritha and we did not like that Allah, the Exalted and Glorious, should not have revealed this verse for the fact that Allah (gave an assurance) of being the Guardian of both.  

مسلم:٢٥٠٥حَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ الْحَنْظَلِيُّ وَأَحْمَدُ بْنُ عَبْدَةَ وَاللَّفْظُ لإِسْحَاقَ قَالاَ أَخْبَرَنَا سُفْيَانُ عَنْ عَمْرٍو عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ قَالَ

فِينَا نَزَلَتْ { إِذْ هَمَّتْ طَائِفَتَانِ مِنْكُمْ أَنْ تَفْشَلاَ وَاللَّهُ وَلِيُّهُمَا} بَنُو سَلِمَةَ وَبَنُو حَارِثَةَ وَمَا نُحِبُّ أَنَّهَا لَمْ تَنْزِلْ لِقَوْلِ اللَّهِ ﷻ { وَاللَّهُ وَلِيُّهُمَا}  


See similar narrations below:

Collected by Bukhārī, Ibn Ḥibbān
bukhari:4051Muḥammad b. Yūsuf > Ibn ʿUyaynah > ʿAmr > Jābir > Nazalat Hadhih al-Āyah Fīnā Idh Hammat Ṭāʾifatān Minkum > Tafshalā Banī Salimah And Banī Ḥārithah Wamā Uḥib > Lam Tanzil Wa-al-Lah

This Verse: "When two of your parties almost Decided to fall away..." was revealed in our connection, i.e. Bani Salama and Bani Haritha and I would not have liked that, if it was not revealed, for Allah said:-- But Allah was their Protector.....(3.122)  

البخاري:٤٠٥١حَدَّثَنَا مُحَمَّدُ بْنُ يُوسُفَ عَنِ ابْنِ عُيَيْنَةَ عَنْ عَمْرٍو عَنْ جَابِرٍ ؓ قَالَ

نَزَلَتْ هَذِهِ الآيَةُ فِينَا {إِذْ هَمَّتْ طَائِفَتَانِ مِنْكُمْ أَنْ تَفْشَلاَ} بَنِي سَلِمَةَ وَبَنِي حَارِثَةَ وَمَا أُحِبُّ أَنَّهَا لَمْ تَنْزِلْ وَاللَّهُ يَقُولُ {وَاللَّهُ وَلِيُّهُمَا}  

bukhari:4558ʿAlī b. ʿAbdullāh > Sufyān > ʿAmr > Jābir b. ʿAbdullāh > Fīnā Nazalat Idh Hammat Ṭāʾifatān Minkum > Tafshalā And al-Lah Waliyyuhumā > Naḥn al-Ṭāʾifatān Banū Ḥārithah Wabanū Salimah Wamā Nuḥib > Sufyān Marrah Wamā Yasurrunī

The Verse:--"When two parties from among you were about to lose heart, but Allah was their Protector," (3.122) was revealed concerning us, and we were the two parties, i.e. Banu Haritha and Banu Salama, and we do not wish (that it had not been revealed) or I would not have been pleased (if it had not been revealed), for Allah says:--"...Allah was their Protector."  

البخاري:٤٥٥٨حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ اللَّهِ حَدَّثَنَا سُفْيَانُ قَالَ قَالَ عَمْرٌو سَمِعْتُ جَابِرَ بْنَ عَبْدِ اللَّه ِ ؓ يَقُولُ فِينَا نَزَلَتْ {إِذْ هَمَّتْ طَائِفَتَانِ مِنْكُمْ أَنْ تَفْشَلاَ وَاللَّهُ وَلِيُّهُمَا} قَالَ

نَحْنُ الطَّائِفَتَانِ بَنُو حَارِثَةَ وَبَنُو سَلِمَةَ وَمَا نُحِبُّ وَقَالَ سُفْيَانُ مَرَّةً وَمَا يَسُرُّنِي أَنَّهَا لَمْ تُنْزَلْ لِقَوْلِ اللَّهِ {وَاللَّهُ وَلِيُّهُمَا}  

ذِكْرُ الْخَبَرِ الدَّالِّ عَلَى أَنَّ اللَّهَ تَعَالَى وَلِيُّ بَنِي سَلِمَةَ، وَبَنِي حَارِثَةَ

ibnhibban:7288Ibrāhīm b. Abū Umayyah Biṭarasūs > Ḥāmid b. Yaḥyá b. al-Balkhī > Sufyān b. ʿUyaynah > ʿAmr b. Dīnār > Jābir b. ʿAbdullāh > Fīnā Nazalat Idh Hammat Ṭāʾifatān Minkum > Tafshalā And al-Lah Waliyyuhumā Banū Salimah Wabanū Ḥārithah > ʿAmr > Jābir Wamā Uḥib

[Machine] "That they both fail (to find protection), by Allah, their guardian (protectors) are Banu Salimah and Banu Harithah." Amr said, Jabir said, "And I would not like it if it did not descend (reveal) for (the word of) Allah, 'And Allah is their guardian (protector).'"  

ابن حبّان:٧٢٨٨أَخْبَرَنَا إِبْرَاهِيمُ بْنُ أَبِي أُمَيَّةَ بِطَرَسُوسَ حَدَّثَنَا حَامِدُ بْنُ يَحْيَى بْنِ الْبَلْخِيِّ حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ عَنْ عَمْرِو بْنِ دِينَارٍ قَالَ سَمِعْتُ جَابِرَ بْنَ عَبْدِ اللَّهِ يَقُولُ «فِينَا نَزَلَتْ {إِذْ هَمَّتْ طَائِفَتَانِ مِنْكُمْ

أَنْ تَفْشَلَا وَاللَّهُ وَلِيُّهُمَا} بَنُو سَلِمَةَ وَبَنُو حَارِثَةَ» قَالَ عَمْرٌو قَالَ جَابِرٌ «وَمَا أُحِبُّ أَنَّهَا لَمْ تَنْزِلْ لِقَوْلِ اللَّهِ {وَاللَّهُ وَلِيُّهُمَا} »