Sahih Muslim 2133 a
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
تَسَمَّوْا بِاسْمِي وَلاَ تَكْتَنُوا بِكُنْيَتِي فَإِنَّمَا أَنَا قَاسِمٌ أَقْسِمُ بَيْنَكُمْ "
Jabir b. 'Abdullah reported that a child was born to a person amongst us and he gave him the name of Muhammad. Thereupon his people said:
We will not allow You to give the name of Muhammad (to your child) after the name of Allah's Messenger (ﷺ). He set forth with his son carrying him on his back and came to Allah's Apostle (ﷺ), and said: Allah's Messenger a son has been born to me and I have given him the name after the name of Allah's Messenger (ﷺ), whereupon Allah's Messenger (ﷺ) 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.
Full reference and source
Sahih Muslim 2133 a In-book : Book 38, Hadith 3 USC-MSA web (English) : Book 25, Hadith 5316 (deprecated)
View source on Sunnah.com (opens in a new tab)