Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
abudawud:4967ʿUthmān And ʾAbū Bakr Āb.ā Abū Shaybah > Abū Usāmah > Fiṭr > Mundhir > Muḥammad Ibn al-Ḥanafiyyah

I said: Messenger of Allah! tell me if a son is born to me after your death, may I give him your name and your kunyah? He replied: Yes. The transmitter Abu Bakr did not mention the words "I said". Instead, he said: 'Ali said to the Prophet ﷺ.  

أبو داود:٤٩٦٧حَدَّثَنَا عُثْمَانُ وَأَبُو بَكْرٍ ابْنَا أَبِي شَيْبَةَ قَالاَ حَدَّثَنَا أَبُو أُسَامَةَ عَنْ فِطْرٍ عَنْ مُنْذِرٍ عَنْ مُحَمَّدِ ابْنِ الْحَنَفِيَّةِ قَالَ قَالَ

عَلِيٌّ رَحِمَهُ اللَّهُ قُلْتُ يَا رَسُولَ اللَّهِ إِنْ وُلِدَ لِي مِنْ بَعْدِكَ وَلَدٌ أُسَمِّيهِ بِاسْمِكَ وَأُكْنِيهِ بِكُنْيَتِكَ قَالَ نَعَمْ وَلَمْ يَقُلْ أَبُو بَكْرٍ قُلْتُ قَالَ عَلِيٌّ عَلَيْهِ السَّلاَمُ لِلنَّبِيِّ ﷺ  


See similar narrations below:

Collected by Aḥmad, Bayhaqī
ahmad:730Wakīʿ > Fiṭr > Mundhir > Ibn al-Ḥanafiyyah

ʿAli ؓ said: O Messenger of Allah ﷺ, if I have a son after you are gone, I will call him by your name and give him your kunyah. He said: ʿYes.ʿ That was a concession from the Messenger of Allah ﷺ to ʿAli.  

أحمد:٧٣٠حَدَّثَنَا وَكِيعٌ حَدَّثَنَا فِطْرٌ عَنِ مُنْذِرٍ عَنِ ابْنِ الْحَنَفِيَّةِ قَالَ قَالَ

عَلِيٌّ يَا رَسُولَ اللهِ أَرَأَيْتَ إِنْ وُلِدَ لِي بَعْدَكَ وَلَدٌ أُسَمِّيهِ بِاسْمِكَ وَأُكَنِّيهِ بِكُنْيَتِكَ؟ قَالَ نَعَمْ فَكَانَتْ رُخْصَةً مِنْ رَسُولِ اللهِ ﷺ لِعَلِيٍّ  

bayhaqi:19329Abū ʿAlī al-Rūdhbārī > Muḥammad b. Bakr > Abū Dāwud > ʿUthmān And ʾAbū Bakr Āb.ā Abū Shaybah > Abū Usāmah > Fiṭr > Mundhir > Muḥammad Ibn al-Ḥanafiyyah > ʿAlī

I said: Messenger of Allah! tell me if a son is born to me after your death, may I give him your name and your kunyah? He replied: Yes. The transmitter Abu Bakr did not mention the words "I said". Instead, he said: 'Ali said to the Prophet ﷺ. (Using translation from Abū Dāʾūd 4967)   

البيهقي:١٩٣٢٩أَخْبَرَنَا أَبُو عَلِيٍّ الرُّوذْبَارِيُّ أنبأ مُحَمَّدُ بْنُ بَكْرٍ ثنا أَبُو دَاوُدَ ثنا عُثْمَانُ وَأَبُو بَكْرٍ ابْنَا أَبِي شَيْبَةَ قَالَا ثنا أَبُو أُسَامَةَ عَنْ فِطْرٍ عَنْ مُنْذِرٍ عَنْ مُحَمَّدِ ابْنِ الْحَنَفِيَّةِ قَالَ

قَالَ عَلِيٌّ ؓ قُلْتُ يَا رَسُولَ اللهِ إِنْ وُلِدَ لِي مِنْ بَعْدِكَ وَلَدٌ أُسَمِّيهِ بِاسْمِكَ وَأُكَنِّيهِ بِكُنْيَتِكَ؟ قَالَ نَعَمْ لَمْ يَقُلْ أَبُو بَكْرٍ قُلْتُ قَالَ قَالَ عَلِيٌّ لِلنَّبِيِّ ﷺ