Sahih al-Bukhari 984
Hamid bin Umar told us. He narrated from Hammad bin Zaid, Hammad from Ayyub, and Ayyub from Muhammad, that Hazrat Anas bin Malik (ra) said: The Messenger of Allah (saw) led the Prayer on the day of Eid-ul-Adha. Then he addressed the people, and to whoever had slaughtered before the Prayer he said that he should slaughter again. At this a man from among the Ansar stood up and said: O Messenger of Allah (saw)! I have some neighbours, or he said: they suffer from hunger, or he said: (they) are in need, and I slaughtered before the Prayer, and now I have a one-year-old young she-goat which is dearer to me than two goats for meat. He gave him permission to slaughter it.
AI-translated by Islam-Today
Book 23: If the Imam is asked about something while he is delivering the Khutba