On the day of Uhud, the Messenger of Allah ﷺ was left isolated with seven men from the Ansar and two men from Quraysh. When the enemy closed in on him, he said, "Who will drive them back from us and have Paradise," or, "be my companion in Paradise?"A man from the Ansar stepped forward and fought until he was killed. Then the enemy pressed in again, and he said, "Who will drive them back from us and have Paradise," or, "be my companion in Paradise?"Another man from the Ansar stepped forward and fought until he was killed. This continued until all seven were slain. The Messenger of Allah ﷺ then said to his two remaining companions, "We have not been fair to our companions."
أن رسول الله ﷺ أفرد يوم أحد في سبعة من الأنصار ورجلين من قريش، فلما رهقوه قال: من يردهم عنا وله الجنة، أو هو رفيقي في الجنة؟ فتقدم رجل من الأنصار فقاتل حتى قتل، ثم رهقوه أيضا فقال: من يردهم عنا وله الجنة، أو هو رفيقي في الجنة؟ فتقدم رجل من الأنصار فقاتل حتى قتل، فلم يزل كذلك حتى قتل السبعة فقال رسول الله ﷺ لصاحبيه: ما أنصفنا أصحابنا.
Muslim narrated it in the Book of Jihad and Expeditions (100:1789) from Haddab bin Khalid Azdi, who said, Hammad bin Salama narrated to us, from Ali bin Zayd and Thabit Bunani, from Anas bin Malik, who said, and then he mentioned it.