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.
bukhari:3115Muḥammad b. Yūsuf > Sufyān > al-Aʿmash > Sālim b. Abū al-Jaʿd > Jābir b. ʿAbdullāh al-Anṣārī > Wulid Lirajul Minnā Ghulām Fasammāh al-Qāsim

A man amongst us begot a boy whom he named Al-Qasim. On that the Ansar said, (to the man), "We will never call you Abu-al-Qasim and will never please you with this blessed title." So, he went to the Prophet and said, "O Messenger of Allah ﷺ! I have begotten a boy whom I named Al-Qasim and the Ansar said, 'We will never call you Abu-al-Qasim, nor will we please you with this title.' " The Prophet ﷺ said, "The Ansar have done well. Name by my name, but do not name by my Kunya, for I am Qasim."  

البخاري:٣١١٥حَدَّثَنَا مُحَمَّدُ بْنُ يُوسُفَ حَدَّثَنَا سُفْيَانُ عَنِ الأَعْمَشِ عَنْ سَالِمِ بْنِ أَبِي الْجَعْدِ عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ الأَنْصَارِيِّ قَالَ

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


See similar narrations below:

Collected by Muslim
muslim:2133bHannād b. al-Sarī > ʿAbthar > Ḥuṣayn > Sālim b. Abū al-Jaʿd > Jābir b. ʿAbdullāh

We will not allow you to give the name after the name of Messenger of Allah ﷺ until you ask him (the Holy Prophet). So he (that person) came and said (to the Holy Prophet): A child was born in my house and I wanted to give him the name (of Muhammad) after the name of Messenger of Allah, whereas my people did not allow me that I should name him after that (sacred) name until I have asked Allah's Apostle ﷺ in this connection, whereupon he said: Give him the name after my name, but do not call him by my kunya, for I have been sent as a Qasim as I distribute amongst you.  

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

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