Anas bin Malik reported,

A man called out to another at al-Baqi, "Abu Qasim!" The Messenger of Allah turned toward him, and the man said, "Messenger of Allah, I did not mean you. I was only calling so-and-so."The Messenger of Allah ﷺ said, "Take my name, but do not take my kunyah."

Azami 14497

Sahih

عن أنس، قال

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

الأعظمي 14497صحيح
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 14497 (2nd edition)
Azami 14497