Sunan Abi Dawud
Sunan Abi Dawud 5198
Regarding who should be greeted first
Arabic hadith text
حَدَّثَنَا أَحْمَدُ بْنُ حَنْبَلٍ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، أَخْبَرَنَا مَعْمَرٌ، عَنْ هَمَّامِ بْنِ مُنَبِّهٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم "يُسَلِّمُ الصَّغِيرُ عَلَى الْكَبِيرِ وَالْمَارُّ عَلَى الْقَاعِدِ وَالْقَلِيلُ عَلَى الْكَثِيرِ " .
Translation
Abu Hurairah reported the Messenger of Allah (May peace be upon him) as saying
The young should salute the old, the one who is passing by should salute the one who is sitting, and a small company should salute a large one.