Jami` at-Tirmidhi, Book 43, Hadith 117 (Tirmidhi 2922)

Narrated 'Ali bin Abi Talib:

that he said: "O Messenger of Allah (ﷺ)! If I have a son after you do you think I could name him your Kunyah?" He said: "Yes." So he said: "So that was permitted for me."