Asim bin Sharib said: On the day of sacrifice a ram was brought to Sayyiduna Ali bin Abi Talib (may Allah be pleased with him), and he slaughtered it, saying: 'Bismillah, Allahumma minka wa laka wa min Muhammadin laka' (In the name of Allah; O Allah, it is from You and for You, and from Muhammad to You). Then he gave an order concerning it, and it was given in charity. Then another ram was brought, and he slaughtered it, saying: 'Bismillah, Allahumma minka wa laka wa min Aliyyin laka' (In the name of Allah; O Allah, it is from You and for You, and from Ali to You). Then he said: Bring me a portion of it, and give the rest in charity.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضحايا / 19187