Rasulullah(ﷺ) was commanded (by Allah) to name the sons of Ali: Hassan and Hussain

Reference: Musnad Ahmad 1370

Musnad Ahmad 1370
Narrated Ali (رضي الله عنه):

When al-Hasan was born, I named him Hamzah. When al-Husain was born, I named him after his paternal uncle Ja`far. Then the Messenger of Allah (ﷺ) called me and said: `I have been commanded to change the names of these two.` I said: Allah and His Messenger know best. And he named them Hasan and Husain. (رضي الله عنهما)

حَدَّثَنَا زَكَرِيَّا بْنُ عَدِيٍّ، أَنْبَأَنَا عُبَيْدُ اللَّهِ بْنُ عَمْرٍو، عَنْ عَبْدِ اللَّهِ بْنِ مُحَمَّدِ بْنِ عَقِيلٍ، عَنْ مُحَمَّدِ بْنِ عَلِيٍّ، عَنْ عَلِيٍّ، رَضِيَ اللَّهُ عَنْهُ قَالَ لَمَّا وُلِدَ الْحَسَنُ سَمَّاهُ حَمْزَةَ فَلَمَّا وُلِدَ الْحُسَيْنُ سَمَّاهُ بِعَمِّهِ جَعْفَرٍ قَالَ فَدَعَانِي رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ إِنِّي أُمِرْتُ أَنْ أُغَيِّرَ اسْمَ هَذَيْنِ فَقُلْتُ اللَّهُ وَرَسُولُهُ أَعْلَمُ فَسَمَّاهُمَا حَسَنًا وَحُسَيْنًا‏.‏
Reference  : Musnad Ahmad 1370
In-book reference  : Book 5, Hadith 769