(5) بَاب اسْتِحْبَابِ تَحْنِيكِ الْمَوْلُودِ عِنْدَ وِلَادَتِهِ وَحَمْلِهِ إِلَى صَالِحٍ يُحَنِّكُهُ وَجَوَازِ تَسْمِيَتِهِ يَوْمَ وِلَادَتِهِ وَاسْتِحْبَابِ التَّسْمِيَةِ بِعَبْدِ اللَّهِ وَإِبْرَاهِيمَ وَسَائِرِ أَسْمَاءِ الْأَنْبِيَاءِ عَلَيْهِمْ السَّلَام
Anas b. Malik reported:
I took 'Abdullah b. Abi Talha Ansari to Allah's Messenger (ﷺ) at the time of his birth. Allah's Messenger (ﷺ) was at that time wearing a woollen cloak and besmearing the camels with tar. He said: Have you got with you the dates? I said: Yes. He took hold of the dates and put them in his mouth and softened them, then opened the mouth of the infant and put that in it and the child began to lick it. Thereupon Allah's Messenger (ﷺ) said: The Ansar have a liking for the dates, and he (the Holy Prophet) gave him the name of 'Abdullah.
Reference: Sahih Muslim 2144 a
In-book reference: Book 38, Hadith 27
USC-MSA web (English) reference(deprecated numbering scheme): Book 25, Hadith 5340