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.
tabarani:2780Muḥammad b. ʿAbdullāh al-Ḥaḍramī > Ismāʿīl b. ʿAbdullāh b. Zurārah al-Raqqī > ʿUbaydullāh b. ʿAmr > ʿAbdullāh b. ʿAqīl > Muḥammad b. ʿAlī > ʿAlī

[Machine] That he named his eldest son Hamza and named Husayn Jafar after his uncle, so the Messenger of Allah ﷺ named them Hasan and Husayn.  

الطبراني:٢٧٨٠حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللهِ الْحَضْرَمِيُّ ثنا إِسْمَاعِيلُ بْنُ عَبْدِ اللهِ بْنِ زُرَارَةَ الرَّقِّيُّ ثنا عُبَيْدُ اللهِ بْنُ عَمْرٍو عَنْ عَبْدِ اللهِ بْنِ عَقِيلٍ عَنْ مُحَمَّدِ بْنِ عَلِيٍّ عَنْ عَلِيٍّ ؓ

أَنَّهُ «سَمَّى ابْنَهُ الْأَكْبَرَ حَمْزَةَ وَسَمَّى حُسَيْنًا جَعْفَرًا بِاسْمِ عَمِّهِ فَسَمَّاهُمَا رَسُولُ اللهِ ﷺ حَسَنًا وَحُسَيْنًا»  


See similar narrations below:

Collected by Ḥākim
hakim:7734Abū Bakr Aḥmad b. Salmān al-Faqīh> Hilāl b. al-ʿAlāʾ al-Raqqī from my father > ʿUbaydullāh b. ʿAmr > ʿAbdullāh b. Muḥammad b. ʿAqīl from his father > ʿAlī

[Machine] "He named his eldest son after his uncle, Hamza, and he named Hussain after his uncle, Jafar. The Messenger of Allah ﷺ called Ali and said, 'I have been commanded to change the names of these two.' Allah and His Messenger know best, so he named them Hasan and Hussain."  

الحاكم:٧٧٣٤أَخْبَرَنَا أَبُو بَكْرٍ أَحْمَدُ بْنُ سَلْمَانَ الْفَقِيهُ بِبَغْدَادَ ثَنَا هِلَالُ بْنُ الْعَلَاءِ الرَّقِّيُّ ثَنَا أَبِي ثَنَا عُبَيْدُ اللَّهِ بْنُ عَمْرٍو عَنْ عَبْدِ اللَّهِ بْنِ مُحَمَّدِ بْنِ عَقِيلٍ عَنْ أَبِيهِ عَنْ عَلِيٍّ

أَنَّهُ سَمَّى ابْنَهُ الْأَكْبَرَ بِاسْمِ عَمِّهِ حَمْزَةَ وَسَمَّى حُسَيْنًا بِعَمِّهِ جَعْفَرٍ فَدَعَا رَسُولُ اللَّهِ ﷺ عَلِيًّا فَقَالَ «إِنِّي قَدْ أَمَرْتُ أَنْ أُغَيِّرَ اسْمَ هَذَيْنِ» فَقَالَ اللَّهُ وَرَسُولُهُ أَعْلَمُ فَسَمَّاهُمَا حَسَنًا وَحُسَيْنًا  

«هَذَا حَدِيثٌ صَحِيحُ الْإِسْنَادِ وَلَمْ يُخَرِّجَاهُ»