Mishkat al-Masabih 1462
وَعَنْ حَنَشٍ قَالَ: رَأَيْتُ عَلِيًّا رَضِيَ اللَّهُ عَنْهُ يُضَحِّي بِكَبْشَيْنِ فَقُلْتُ لَهُ: مَا هَذَا؟ فَقَالَ: (إِنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَوْصَانِي أَنْ أُضَحِّيَ عَنْهُ فَأَنَا أُضَحِّي عَنْهُ. رَوَاهُ أَبُو دَاوُدَ وَرَوَى التِّرْمِذِيُّ نَحْوَهُ
From Hanash, who said: I saw ʿAli, may Allah be pleased with him, sacrificing two rams, so I said to him: "What is this?" He said: "The Messenger of Allah ﷺ instructed me to sacrifice on his behalf, so I sacrifice on his behalf." Reported by Abu Dawud, and at-Tirmidhi reported something similar.