Sahih al-Bukhari 5563
Musa bin Isma'il narrated to us that Abu Awanah (Waddah) told us. He narrated from Firas (bin Yahya), Firas from Amir (Sha'bi), Amir from Hazrat Bara' (ra) (bin Azib). He said: One day the Messenger of Allah (saw) led the Prayer (Salat). He (saw) said: “Whoever prays like our Prayer and turns his face towards our Qiblah should not slaughter until he has finished the Prayer.” On hearing this Hazrat Abu Burdah bin Niyar (ra) stood up and said: O Messenger of Allah (saw)! I have done so. He said: “You were somewhat hasty in that.” He said: I have a one-year-old kid; it is better than two goats of two years each. Shall I slaughter it? He said: “Yes, but after you it will not take the place (of a sacrifice, a young kid) for anyone.” Amir said: This was a better sacrifice than his two sacrifices.
AI-translated by Islam-Today
Book 12: Whoever slaughters his sacrifice before the 'Eid prayer should repeat it