Sahih al-Bukhari, Book 79, Hadith 21 (Bukhari 6012)

Narrated Anas bin Malik:

that he passed by a group of boys and greeted them and said, "The Prophet (ﷺ) used to do so."