كتاب الجهاد والسير
32
The Book of Jihad and Expeditions
(37)
Chapter: The Battle of Uhud
(37)
باب غَزْوَةِ أُحُدٍ ‏‏

It has been reported on the authority of Anas b. Malik that (when the enemy got the upper hand) on the day of the Battle of Uhud, the Messenger of Allah (ﷺ) was left with only seven men from the ansar and two men from the Quraish. When the enemy advanced towards him and overwhelmed him, he said:

Whoso turns them away from us will attain Paradise or will be my Companion in Paradise. A man from the Ansar came forward and fought (the enemy) until he was killed. The enemy advanced and overwhelmed him again and he repeated the words: Whoso turns them away, from us will attain Paradise or will be my Companion in Paradise. A man from the Arsar came forward and fought until he was killed. This state continued until the seven Ansar were killed (one after the other). Now, the Messenger of Allah (ﷺ) said to his two Companions: We have not done justice to our Companions.
وَحَدَّثَنَا هَدَّابُ بْنُ خَالِدٍ الأَزْدِيُّ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ عَلِيِّ بْنِ زَيْدٍ، وَثَابِتٍ، الْبُنَانِيِّ عَنْ أَنَسِ بْنِ مَالِكٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم أُفْرِدَ يَوْمَ أُحُدٍ فِي سَبْعَةٍ مِنَ الأَنْصَارِ وَرَجُلَيْنِ مِنْ قُرَيْشٍ فَلَمَّا رَهِقُوهُ قَالَ ‏"‏ مَنْ يَرُدُّهُمْ عَنَّا وَلَهُ الْجَنَّةُ أَوْ هُوَ رَفِيقِي فِي الْجَنَّةِ ‏"‏ ‏.‏ فَتَقَدَّمَ رَجُلٌ مِنَ الأَنْصَارِ فَقَاتَلَ حَتَّى قُتِلَ ثُمَّ رَهِقُوهُ أَيْضًا فَقَالَ ‏"‏ مَنْ يَرُدُّهُمْ عَنَّا وَلَهُ الْجَنَّةُ أَوْ هُوَ رَفِيقِي فِي الْجَنَّةِ ‏"‏ ‏.‏ فَتَقَدَّمَ رَجُلٌ مِنَ الأَنْصَارِ فَقَاتَلَ حَتَّى قُتِلَ فَلَمْ يَزَلْ كَذَلِكَ حَتَّى قُتِلَ السَّبْعَةُ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم لِصَاحِبَيْهِ ‏"‏ مَا أَنْصَفْنَا أَصْحَابَنَا ‏"‏ ‏.‏
Reference : Sahih Muslim 1789
In-book reference : Book 32, Hadith 123
USC-MSA web (English) reference : Book 19, Hadith 4413
  (deprecated numbering scheme)