Abdullah bin Salam reported,

When the Messenger of Allah ﷺ arrived in Madinah, the people rushed out toward him. It was announced, "The Messenger of Allah ﷺ has arrived!" So I came along with the people to look at him. When I got a clear view of 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 at night while people are sleeping. You will enter Paradise in peace."

Azami 65

Sahih

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

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

الأعظمي 65صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Qualities of faith
Section
Clarification of the comprehensive matters by which a Muslim enters Paradise
Numbering
Jami al-Kamil 65 (2nd edition)
Azami 65