عَنْ أَنَسِ بْنِ مَالِكٍ رَضِيَ اللَّهُ عَنْهُ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ نَهَيْتُكُمْ عَنْ لُحُومِ الْأَضَاحِيِّ أَنْ تَأْكُلُوهَا فَوْقَ ثَلَاثِ لَيَالٍ ثُمَّ بَدَا لِي أَنَّ النَّاسَ يُتْحِفُونَ ضَيْفَهُمْ وَيُخَبِّئُونَ لِغَائِبِهِمْ فَأَمْسِكُوا مَا شِئْتُمْ
It is narrated from Sayyiduna Anas bin Malik, may Allah be pleased with him, that the Messenger of Allah, peace and blessings be upon him, said: I had forbidden you from keeping the meat of sacrificial animals for more than three days, but then I realized that people have to host guests and some meat has to be kept safe for those who are not present, so you may keep that meat for as long as you wish.