Abdullah bin Salam reported,

When the Messenger of Allah ﷺ arrived in Medina, people rushed out toward him, and it was said, "The Messenger of Allah ﷺ has arrived." I came along with the crowd to look at him, and when I clearly saw the face of the Messenger of Allah ﷺ, I knew that his face was not the face of a liar.The first thing he said was, "People, spread the greeting of peace, feed others, and pray while people are asleep, and you will enter Paradise in peace."

Azami 14219

Sahih

عن عبد الله بن سلام، قال

لما قدم رسول الله ﷺ المدينة انجفل الناس إليه، وقيل: قدم رسول الله ﷺ، فجئت في الناس لأنظر إليه، فلما استبنت وجه رسول الله ﷺ هل عرفت أن وجهه ليس بوجه كذاب، وكان أول شيء تكلم به أن قال: يا أيها الناس، أفشوا السلام، وأطعموا الطعام، وصلوا والناس نيام تدخلون الجنة بسلام.

الأعظمي 14219صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of seeking permission and greetings
Section
Commanding the spreading of salam
Numbering
Jami al-Kamil 14219 (2nd edition)
Azami 14219