Volume 8 · Book 74 · Hadith 250
Narrated Abu Huraira: The Prophet said, "The young should greet the old, the passer by should greet the sitting one, and the small group of persons should greet the large group of persons. "
— Sahih Bukhari, Volume 8, Book 74: Asking Permission, Hadith #250