Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
abudawud:4968al-Nufaylī > Muḥammad b. ʿImrān al-Ḥajabī > Jaddatih Ṣafiyyah b. Shaybah > ʿĀʾishah ؓ

A woman came to the Messenger of Allah ﷺ and said: Messenger of Allah! I have given birth to a boy, and call him Muhammad and AbulQasim as kunyah (surname), but I have been told that you disapproved of that. He replied: What is it which has made my name lawful and my kunyah unlawful, or what is it which has made my kunyah unlawful and my name lawful?  

أبو داود:٤٩٦٨حَدَّثَنَا النُّفَيْلِيُّ حَدَّثَنَا مُحَمَّدُ بْنُ عِمْرَانَ الْحَجَبِيُّ عَنْ جَدَّتِهِ صَفِيَّةَ بِنْتِ شَيْبَةَ عَنْ عَائِشَةَ ؓ قَالَتْ

جَاءَتِ امْرَأَةٌ إِلَى رَسُولِ اللَّهِ ﷺ فَقَالَتْ يَا رَسُولَ اللَّهِ إِنِّي قَدْ وَلَدْتُ غُلاَمًا فَسَمَّيْتُهُ مُحَمَّدًا وَكَنَّيْتُهُ أَبَا الْقَاسِمِ فَذُكِرَ لِي أَنَّكَ تَكْرَهُ ذَلِكَ فَقَالَ مَا الَّذِي أَحَلَّ اسْمِي وَحَرَّمَ كُنْيَتِي أَوْ مَا الَّذِي حَرَّمَ كُنْيَتِي وَأَحَلَّ اسْمِي