BUKHARI 954: from Anas —

The Prophet ﷺ said, "Whoever slaughtered (his sacrifice) before the ʿId prayer, should slaughter again." A man stood up and said, "This is the day on which one has desire for meat," and he mentioned something about his neighbors. It seemed that the Prophet ﷺ I believed him. Then the same man added, "I have a young she-goat which is dearer to me than the meat of two sheep." The Prophet ﷺ permitted him to slaughter it as a sacrifice. I do not know whether that permission was valid only for him or for others as well.

البخاري ٩٥٤: عن انس —

قَالَ النَّبِيُّ ﷺ مَنْ ذَبَحَ قَبْلَ الصَّلاَةِ فَلْيُعِدْ فَقَامَ رَجُلٌ فَقَالَ هَذَا يَوْمٌ يُشْتَهَى فِيهِ اللَّحْمُ وَذَكَرَ مِنْ جِيرَانِهِ فَكَأَنَّ النَّبِيَّ ﷺ صَدَّقَهُ قَالَ وَعِنْدِي جَذَعَةٌ أَحَبُّ إِلَىَّ مِنْ شَاتَىْ لَحْمٍ فَرَخَّصَ لَهُ النَّبِيُّ ﷺ فَلاَ أَدْرِي أَبَلَغَتِ الرُّخْصَةُ مَنْ سِوَاهُ أَمْ لاَ


Agreed Upon (Luʿluʿ wa-al-Marjān)
Bukhārī > The Two ʿId Festivals (Eids) > § Eating on the day of Nahr (10th of Dhul-Hijjah)
hadithunlocked.com