Sunan Abu Dawud #5198
General Behavior (Kitab Al-Adab) 43:426
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.