Abdullah bin Amr bin As reported,

I heard my father say, while in the presence of the enemy, that the Messenger of Allah ﷺ said, "The gates of Paradise are beneath the shade of swords."A man of shabby appearance stood up and asked, "Abu Musa, did you yourself hear the Messenger of Allah ﷺ say this?"He replied, "Yes."The man then returned to his companions and said, "I bid you peace." He broke the sheath of his sword, threw it away, and walked with his sword toward the enemy, striking with it until he was killed.

Azami 7747

Sahih

عن أبي بكر بن عبد الله بن قيس، عن أبيه قال

سمعت أبي وهو بحضرة العدو يقول: قال رسول الله ﷺ: إن أبواب الجنة تحت ظلال السيوف، فقام رجل رث الهيئة، فقال: يا أبا موسى أنت سمعت رسول الله ﷺ يقول هذا؟ قال: نعم، قال: فرجع إلى أصحابه، فقال: أقرأ عليكم السلام، ثم كسر جفن سيفه، فألقاه، ثم مشى بسيفه إلى العدو، فضرب به حتى قتل.

الأعظمي 7747صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Virtues of jihad
Section
Holding governors accountable
Numbering
Jami al-Kamil 7747 (2nd edition)
Azami 7747