Jabir bin Abdullah reported,

A son was born to a man from among us, the Ansar, and he wanted to name him Muhammad.Shuba said in the narration of Mansur that the Ansari said, "I carried him on my shoulder and brought him to the Prophet ﷺ."In the narration of Sulayman, a son was born to him and he wanted to name him Muhammad. The Prophet ﷺ said, "Name your children with my name, but do not take my kunya, for I have been made Qasim, distributing among you."Husayn's wording was, "I have been sent as Qasim, distributing among you."Amr said, Shuba informed us from Qatada, who said, I heard Salim narrate from Jabir that he wanted to name him al-Qasim, and the Prophet ﷺ said, "Name your children with my name, but do not take my kunya."

Bukhari 3114

Sahih

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

عن جابر بن عبد الله رضي الله عنهما قال

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

البخاري 3114صحيح
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 3114
Bukhari 3114