Anas bin Malik reported,

The Messenger of Allah ﷺ was left alone on the day of Uhud with seven of 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 they pressed in on him 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 had been killed.Then the Messenger of Allah ﷺ said to his two remaining companions, "We have not been fair to our companions."

Muslim 4641

Sahih

و حدثنا هداب بن خالد الأزدي حدثنا حماد بن سلمة عن علي بن زيد وثابت البناني

عن أنس بن مالك

أن رسول الله ﷺ أفرد يوم أحد في سبعة من الأنصار ورجلين من قريش فلما رهقوه قال من يردهم عنا وله الجنة أو هو رفيقي في الجنة فتقدم رجل من الأنصار فقاتل حتى قتل ثم رهقوه أيضا فقال من يردهم عنا وله الجنة أو هو رفيقي في الجنة فتقدم رجل من الأنصار فقاتل حتى قتل فلم يزل كذلك حتى قتل السبعة فقال رسول الله ﷺ لصاحبيه ما أنصفنا أصحابنا

مسلم 4641صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Jihad and expeditions
Chapter
Uhud expedition
Numbering
Darussalam 4641
Muslim 4641