He passed by some children and greeted them with salaam, saying, "The Prophet ﷺ used to do this."
أنه مر على صبيان فسلم عليهم وقال: كان النبي ﷺ يفعله.
Bukhari narrated it in "Seeking Permission" (6247) and Muslim narrated it in "Greetings" (15:2168), both of them through Shubah, from Sayyar, from Thabit Bunani, from Anas, who related it.