Jabir bin Abdullah reported,

A boy was born to one of our men, and he named him Qasim. The Ansar said to him, "We will not call you by the kunya Abu al-Qasim, nor will we please your eye with that."So he came to the Prophet ﷺ and said, "Messenger of Allah, a boy has been born to me and I named him Qasim, but the Ansar said, 'We will not call you Abu al-Qasim, nor will we please your eye with that.'"The Prophet ﷺ said, "The Ansar have done well. Name your children with my name, but do not take my kunya, for I am only a distributor (Qasim)."In another wording he added, "I distribute among you."

Azami 14498

Sahih

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

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

الأعظمي 14498صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Names, kunyas, and titles
Section
Prohibition of using the kunya Abu Qasim during the lifetime of the Prophet ﷺ
Numbering
Jami al-Kamil 14498 (2nd edition)
Azami 14498