(1) باب النَّهْىِ عَنِ التَّكَنِّي، بِأَبِي الْقَاسِمِ وَبَيَانِ مَا يُسْتَحَبُّ مِنَ الأَسْمَاءِ .
Mughira b. Shu'ba reported:
When I came to Najran, they (the Christians of Najran) asked me: You read" O sister of Harun" (i. e. Hadrat Maryam) in the Qur'an, whereas Moses was born much before Jesus. When I came back to Allah's Messenger (ﷺ) I asked him about that, whereupon he said: The (people of the old age) used to give names (to their persons) after the names of Apostles and pious persons who had gone before them. (ID)
Reference (ID): Sahih Muslim 2135 (ID)
In-book reference (ID): Book 38, Hadith 13 (ID)
USC-MSA web (English) reference(deprecated numbering scheme): Book 25, Hadith 5326 (ID)