Al-Adab Al-Mufrad, Book 35, Hadith 2 (In-Book)

Ibn al-Hanafiyya was heard to say, "There was an allowance made for 'Ali. He asked, 'Messenger of Allah, if I have a son after you can I name him with your name and use your kunya?' Yes,' he replied."

حَدَّثَنَا أَبُو نُعَيْمٍ، قَالَ‏:‏ حَدَّثَنَا فِطْرٌ، عَنْ مُنْذِرٍ قَالَ‏:‏ سَمِعْتُ ابْنَ الْحَنَفِيَّةِ يَقُولُ‏:‏ كَانَتْ رُخْصَةً لِعَلِيٍّ، قَالَ‏:‏ يَا رَسُولَ اللهِ، إِنْ وُلِدَ لِي بَعْدَكَ أُسَمِّيهِ بِاسْمِكَ، وَأُكَنِّيهِ بِكُنْيَتِكَ‏؟‏ قَالَ‏:‏ نَعَمْ‏.‏

sunnah.com