Imam al-Sha'bi (may Allah have mercy on him) narrates from Sayyiduna al-Bara bin Azib (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) delivered a sermon to us on the day of sacrifice after the prayer. He (peace and blessings be upon him) said: "Whoever prays as we pray and after that slaughters the sacrifice has made the sacrifice, and whoever sacrifices before the prayer, then that is a goat for meat." Abu Burdah bin Niyar (may Allah be pleased with him) stood up and said: "O Messenger of Allah! I sacrificed before coming to the prayer, because I knew that this is a day of eating and drinking; I hurried, and I ate myself and also fed my family and neighbours." He (peace and blessings be upon him) said: "That is a goat for meat." Abu Burdah (may Allah be pleased with him) said: "I have a young female goat (jadh'ah) that is better than two goats of meat; will it suffice for me?" He (peace and blessings be upon him) said: "It will suffice on your behalf, but it will not suffice for anyone after you."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضحايا / 19112