(1) باب النَّهْىِ عَنِ التَّكَنِّي، بِأَبِي الْقَاسِمِ وَبَيَانِ مَا يُسْتَحَبُّ مِنَ الأَسْمَاءِ .
Anas reported that person at Baqi' called another person as" Abu'l- Qasim," and Allah's Messenger (ﷺ) turned towards him. He (the person who had uttered these words) said:
Messenger of Allah, I did not mean you, but I called such and such (person), whereupon Allah's Messenger (ﷺ) said: You may call yourself by my name, but not by my kunya.
Reference: Sahih Muslim 2131
In-book reference: Book 38, Hadith 1
USC-MSA web (English) reference(deprecated numbering scheme): Book 25, Hadith 5314
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.