Jabir bin Abdullah reported,

A son was born to one of our men, and he named him Qasim. The Ansar said to him, "We will not call you Abu Qasim, nor will we give you that pleasure."So he came to the Prophet ﷺ and said, "Messenger of Allah, a son was born to me and I named him Qasim, but the Ansar said, 'We will not call you Abu Qasim, nor will we give you that pleasure.'"The Prophet ﷺ said, "The Ansar have done well. Name your children with my name, but do not take my kunya, for I am only the distributor."

Bukhari 3115

Sahih

حدثنا محمد بن يوسف حدثنا سفيان عن الأعمش عن سالم بن أبي الجعد

عن جابر بن عبد الله الأنصاري قال

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

البخاري 3115صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Obligation of the fifth
Chapter
His saying, "Then to Allah belongs one fifth of it"
Numbering
Darussalam 3115
Bukhari 3115