Amr bin As reported,

The people of Medina were struck with panic while they were with the Prophet ﷺ, and they scattered. I saw Salim, the freed slave of Abu Huzaifa, wrap himself in his garment with his sword and sit in the mosque. When I saw what he did, I did the same. Then the Messenger of Allah ﷺ came out and saw me and Salim, and the people gathered around him.The Messenger of Allah ﷺ said, "People, should your refuge in panic not be Allah and His Messenger? Why did you not do as these two believing men have done?"

Azami 10051

Sahih

عن عمرو بن العاص يقول

فزع الناس بالمدينة مع النبي ﷺ فتفرقوا، فرأيت سالما مولى أبي حذيفة احتبى بسيفه، وجلس في المسجد، فلما رأيت ذلك، فعلت مثل الذي فعل، فخرج رسول الله ﷺ فرآني وسالما وأتى الناس فقال رسول الله ﷺ: يا أيها الناس، ألا مفزعكم إلى الله ورسوله؟ ألا فعلتم كما فعل هذان الرجلان المؤمنان؟

الأعظمي 10051صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the Companions and reports about them
Chapter
Virtue of groups of the Companions
Section
Virtue of Salim, the freed slave of Abu Huzaifa, and Amr bin As
Numbering
Jami al-Kamil 10051 (2nd edition)
Azami 10051