It is narrated from Sayyiduna Ali (may Allah be pleased with him) that he sought permission from the Messenger of Allah (peace and blessings be upon him): if a son were born to him after him (peace and blessings be upon him), could he name him after his (peace and blessings be upon him) name and give him his (peace and blessings be upon him) kunyah? Muhammad bin al-Hanafiyyah (may Allah have mercy on him) said: "This was a concession granted by the Messenger of Allah (peace and blessings be upon him)," and his name was given as Muhammad and his kunyah as Abu al-Qasim.
Hadith Referenceمسند أبي يعلى الموصلي / مسند علي بن أبي طالب رضي الله عنه / 303
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده صحيح . » «قال سعيد بن محمد السناري: صحيح» «أخرجه أحمد [1/ 95]، والترمذى [2843]، وأبو داود [4967]، والحاكم [4/ 309]، والبخارى في "الأدب المفرد" [843]، وفى "تاريخه" [1/ 182]، وابن أبى شيبة [25914]، والبيهقى [19112]، والطحاوى في "شرح المعانى" [4/ 335]، وابن راهويه [1274]، وابن سعد في "الطبقات" [5/ 91]، والدولابى في "الكنى" [1/ رقم 29]، وابن عساكر في "تاريخه" [3/ 42]، وجماعة، مسند ابویعلیٰ ترقیم الاثری: 298»