Sahih Bukhari Volume 008, Book 074, Hadith Number 264.

Narated By Anas bin Malik : That he passed by a group of boys and greeted them and said, "The Prophet used to do so."