It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) used to visit the Ansar, "greet their children with salam and pass his hand affectionately over their heads."
Imam al-Nasa'i (may Allah have mercy on him) narrated it from Qutaybah (may Allah have mercy on him).