Jabir bin Abdullah reported,

Jabir said, "It was concerning us that the verse was revealed, 'When two groups among you were about to lose heart, but Allah was their protector' [Aal Imran 3:122]. We are Banu Salama and Banu Haritha, and we would not wish that it had not been revealed, because of the words of Allah عز وجل, 'but Allah was their protector.'"

Azami 12093

Sahih

عن جابر بن عبد الله قال

فينا نزلت: {إذ همت طائفتان منكم أن تفشلا والله وليهما} بنو سلمة وبنو حارثة، وما نحب أنها لم تنزل لقول الله عز وجل: {والله وليهما}.

الأعظمي 12093صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "And remember when you left your family at dawn to post the believers at their stations for battle, and Allah is Hearing, Aleem. When two parties among you were about to lose courage, but Allah was their protector, and upon Allah let the believers rely."
Numbering
Jami al-Kamil 12093 (2nd edition)
Azami 12093