Sahih al-Bukhari 984
Book 13: The Two Festivals (Eids) · Hadith 33
Hadith text
Narrated Anas bin Malik:Allah's Messenger (ﷺ) offered the prayer on the day of Nahr and then delivered the Khutba and ordered that whoever had slaughtered his sacrifice before the prayer should repeat it, that is, should slaughter another sacrifice. Then a person from the Ansar stood up and said, "O Allah's Messenger (ﷺ)! because of my neighbors (he described them as being very needy or poor) I slaughtered before the prayer. I have a young she-goat which, in my opinion, is better than two sheep." The Prophet (ﷺ) gave him the permission for slaughtering it as a sacrifice
Anas bin Malik (رضی اللہ عنہ) bataate hain: Allah ke Rasool ne Yaum-un-Nahr ke din namaz padhi, phir khutba di aur hukum diya ke jisne namaz se pehle apni qurbani zabah ki hai, woh dobara zabah kare, yaani doosri qurbani zabah kare. Phir Ansaar mein se ek shaks khada hokar bola: "Ya Allah ke Rasool! Apne padosiyon (jinhe unhone bahut zaroorat-mand ya gareeb bataya) ki wajah se maine namaz se pehle zabah kar liya. Mere paas ek jawan bakri hai jo mere khayaal se do bhedon se behtar hai." Nabi ne unhe ise qurbani ke tor par zabah karne ki ijazat di.
Sahih al-Bukhari 984 · Book 13, Hadith 33