(5) The Book of Greetings
كتاب السلام
(136) Chapter: Greeting Children
(136) - باب السلام على الصبيان
Riyad as-Salihin 862 
Anas (May Allah be pleased with him) reported that he passed by some children and greeted them. Then he said:
"Messenger of Allah (ﷺ) used to do the same."


[Al-Bukhari and Muslim].

عن أنس رضي الله عنه أنه مر على صبيان، فسلم عليهم، وقال‏:‏ كان رسول الله صلى الله عليه وسلم يفعله” ‏(‏‏(‏متفق عليه‏)‏‏)‏
Reference : Riyad as-Salihin 862
In-book reference : Book 5, Hadith 19