Anas b. Malik reported that when Allah's Messenger (ﷺ) happened to pass by young boys he would great them. Sahih Muslim Book 39, Hadith 18