Sunan Abi Dawud

Sunan Abi Dawud 5199

Regarding who should be greeted first
Arabic hadith text
حَدَّثَنَا يَحْيَى بْنُ حَبِيبِ بْنِ عَرَبِيٍّ، أَخْبَرَنَا رَوْحٌ، حَدَّثَنَا ابْنُ جُرَيْجٍ، قَالَ أَخْبَرَنَا زِيَادٌ، أَنَّ ثَابِتًا، مَوْلَى عَبْدِ الرَّحْمَنِ بْنِ زَيْدٍ أَخْبَرَهُ أَنَّهُ، سَمِعَ أَبَا هُرَيْرَةَ، يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ يُسَلِّمُ الرَّاكِبُ عَلَى الْمَاشِي ‏"‏ ‏.‏ ثُمَّ ذَكَرَ الْحَدِيثَ
Translation
Abu Hurairah reported the Messenger of Allah (May peace be upon him) as saying

one who is riding should salute one who is walking. He then mentioned the rest of the tradition.