(5) باب بَيَانِ مَا كَانَ مِنَ النَّهْىِ عَنْ أَكْلِ لُحُومِ الأَضَاحِيِّ بَعْدَ ثَلاَثٍ فِي أَوَّلِ الإِسْلاَمِ وَبَيَانِ نَسْخِهِ وَإِبَاحَتِهِ إِلَى مَتَى شَاءَ
Jabir reported that Allah's Apostle (ﷺ) forbade eating of the flesh of sacrificed animals beyond three (days). but afterwards said:
Eat, make a provision, and keep it.
Reference: Sahih Muslim 1972 a
In-book reference: Book 35, Hadith 41
USC-MSA web (English) reference(deprecated numbering scheme): Book 22, Hadith 4857