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.
bayhaqi:19324[Chain 1] Abū ʿAbdullāh al-Ḥāfiẓ > Abū ʿAbdullāh Muḥammad b. Yaʿqūb > Muḥammad b. Muḥammad b. Rajāʾ > ʿUthmān b. Abū Shaybah > Jarīr [Chain 2] Wʾnbʾ Abū al-Faḍl b. Ibrāhīm > Aḥmad b. Salamah > Isḥāq b. Ibrāhīm > Jarīr > Manṣūr > Sālim b. Abū al-Jaʿd > Jābir ؓ > Wulid Lirajul Minnā Ghulām Fasammāh Muḥammad

We will not allow You to give the name of Muhammad (to your child) after the name of Messenger of Allah ﷺ. He set forth with his son carrying him on his back and came to Allah's Apostle ﷺ, and said: Messenger of Allah a son has been born to me and I have given him the name after the name of Messenger of Allah ﷺ, whereupon Messenger of Allah ﷺ said: Give him my name but do not give him my kunya, for I am Qasim in the sense that I distribute (the spoils of war) and the dues of Zakat amongst you. (Using translation from Muslim 2133a)   

البيهقي:١٩٣٢٤أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو عَبْدِ اللهِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا مُحَمَّدُ بْنُ مُحَمَّدِ بْنِ رَجَاءٍ ثنا عُثْمَانُ بْنُ أَبِي شَيْبَةَ ثنا جَرِيرٌ ح قَالَ وأنبأ أَبُو الْفَضْلِ بْنُ إِبْرَاهِيمَ ثنا أَحْمَدُ بْنُ سَلَمَةَ ثنا إِسْحَاقُ بْنُ إِبْرَاهِيمَ أنبأ جَرِيرٌ عَنْ مَنْصُورٍ عَنْ سَالِمِ بْنِ أَبِي الْجَعْدِ عَنْ جَابِرٍ ؓ قَالَ وُلِدَ لِرَجُلٍ مِنَّا غُلَامٌ فَسَمَّاهُ مُحَمَّدًا فَقَالَ

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

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ عُثْمَانَ بْنِ أَبِي شَيْبَةَ وَإِسْحَاقَ بْنِ إِبْرَاهِيمَ وَأَخْرَجَاهُ مِنْ حَدِيثِ شُعْبَةَ عَنْ مَنْصُورٍ

See similar narrations below:

Collected by Muslim
muslim:2133aʿUthmān b. Abū Shaybah And ʾIsḥāq b. Ibrāhīm > ʿUthmān > Isḥāq > Jarīr > Manṣūr > Sālim b. Abū al-Jaʿd > Jābir b. ʿAbdullāh > Wulid Lirajul Minnā Ghulām Fasammāh Muḥammad

We will not allow You to give the name of Muhammad (to your child) after the name of Messenger of Allah ﷺ. He set forth with his son carrying him on his back and came to Allah's Apostle ﷺ, and said: Messenger of Allah a son has been born to me and I have given him the name after the name of Messenger of Allah ﷺ, whereupon Messenger of Allah ﷺ said: Give him my name but do not give him my kunya, for I am Qasim in the sense that I distribute (the spoils of war) and the dues of Zakat amongst you.  

مسلم:٢١٣٣aحَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ وَإِسْحَاقُ بْنُ إِبْرَاهِيمَ قَالَ عُثْمَانُ حَدَّثَنَا وَقَالَ إِسْحَاقُ أَخْبَرَنَا جَرِيرٌ عَنْ مَنْصُورٍ عَنْ سَالِمِ بْنِ أَبِي الْجَعْدِ عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ قَالَ

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