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 ﷺ then said, "Take my name, but do not take my kunya."In another narration, the Prophet ﷺ was in the marketplace.

Azami 8518

Sahih

عن أنس قال

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

الأعظمي 8518صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Section
Kunya of the Prophet ﷺ
Numbering
Jami al-Kamil 8518 (2nd edition)
Azami 8518