Jabir bin Abdullah reported,

A son was born to one of our men, and he named him Muhammad. His people said to him, "We will not let you name your child after the Messenger of Allah ﷺ."So he set off carrying his son on his back and brought him to the Prophet ﷺ. He said, "Messenger of Allah, a son was born to me and I named him Muhammad, but my people said to me, 'We will not let you name him after the Messenger of Allah ﷺ.'"The Messenger of Allah ﷺ replied, "Take my name, but do not take my kunyah, for I am only a distributor who distributes among you."

Muslim 5588

Sahih

حدثنا عثمان بن أبي شيبة وإسحق بن إبراهيم قال عثمان حدثنا و قال إسحق أخبرنا جرير عن منصور عن سالم بن أبي الجعد

عن جابر بن عبد الله قال

ولد لرجل منا غلام فسماه محمدا فقال له قومه لا ندعك تسمي باسم رسول الله ﷺ فانطلق بابنه حامله على ظهره فأتى به النبي ﷺ فقال يا رسول الله ولد لي غلام فسميته محمدا فقال لي قومي لا ندعك تسمي باسم رسول الله ﷺ فقال رسول الله ﷺ تسموا باسمي ولا تكتنوا بكنيتي فإنما أنا قاسم أقسم بينكم

مسلم 5588صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Etiquette
Chapter
Prohibition of using Abu Qasim as a kunyah and explanation of recommended names
Numbering
Darussalam 5588
Muslim 5588