Al-Adab Al-Mufrad, Book 42, Hadith 1001 (English)

Abu Hurayra reported that the Messenger of Allah, may Allah bless him and grant him peace, said, "The young person greets the old person, the person walking greets the person sitting down, and the small group greets the large group."

حَدَّثَنَا أَحْمَدُ بْنُ أَبِي عَمْرٍو قَالَ‏:‏ حَدَّثَنِي أَبِي قَالَ‏:‏ حَدَّثَنِي إِبْرَاهِيمُ، عَنْ مُوسَى بْنِ عُقْبَةَ، عَنْ صَفْوَانَ بْنِ سُلَيْمٍ، عَنْ عَطَاءِ بْنِ يَسَارٍ، عَنْ أَبِي هُرَيْرَةَ قَالَ‏:‏ قَالَ رَسُولُ اللهِ صلى الله عليه وسلم‏:‏ يُسَلِّمُ الصَّغِيرُ عَلَى الْكَبِيرِ، وَالْمَاشِي عَلَى الْقَاعِدِ، وَالْقَلِيلُ عَلَى الْكَثِيرِ‏.‏

sunnah.com

(sic) Abu'z-Zinad said, "Kharija (ibn Zayd ibn Thabit) used to write on the letter of Zayd when he said the salam, 'Peace be upon you, Amir al-Mu'minin, and the mercy of Allah and His blessings and His forgiveness and the best of His prayers."

حَدَّثَنَا مُحَمَّدُ بْنُ سَلاَمٍ، قَالَ‏:‏ أَخْبَرَنَا مَخْلَدٌ، قَالَ‏:‏ أَخْبَرَنَا ابْنُ جُرَيْجٍ قَالَ‏:‏ أَخْبَرَنِي زِيَادٌ، عَنْ أَبِي الزِّنَادِ قَالَ‏:‏ كَانَ خَارِجَةُ يَكْتُبُ عَلَى كِتَابِ زَيْدٍ إِذَا سَلَّمَ، قَالَ‏:‏ السَّلاَمُ عَلَيْكَ يَا أَمِيرَ الْمُؤْمِنِينَ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ وَمَغْفِرَتُهُ، وَطَيِّبُ صَلَوَاتِهِ‏.‏

sunnah.com