It is narrated from Sayyiduna Yusuf bin Abdullah bin Salam (may Allah be pleased with him), he said: The Messenger of Allah (peace and blessings be upon him) named me Yusuf, seated me in his blessed lap, and passed his hand over my head.
Hadith Referenceالادب المفرد / كتاب الصغير / 367
Hadith Gradingالألبانی:صحيح
Hadith Takhrij«صحيح : أخرجه أحمد : 23836 و الترمذي فى الشمائل : 340 و ابن أبى شيبة : 689 و الطبراني فى الكبير : 285/22 و البيهقي فى شعب الإيمان : 11033»
Explanation & Benefits
Shaykh Maulana Usman Muneeb
Benefits and Issues: ➊ From this, it is understood that it is permissible to affectionately and kindly place one's hand on the heads of children. In particular, it is recommended (mustahabb) for a religious scholar (‘alim) or elder to show affection to children in this manner. In fact, in narrations, there is also mention of kissing small children. ➋ From this, it is understood that having a righteous person choose a name (for a child) is recommended (mustahabb).
Source: Fadlullah al-Ahad: Urdu Commentary on al-Adab al-Mufrad, Page: 367