Sahih al-Bukhari Book 73, Hadith 25
The Prophet (ﷺ) said, "Whoever has slaughtered a sacrifice should not keep anything of Its meat after
three days." When it was the next year the people said, "O Allah's Messenger (ﷺ)! Shall we do as we did last
year?" He said, ' Eat of it and feed of it to others and store of it for in that year the people were having
a hard time and I wanted you to help (the needy).
that once he was not present (at the time of `Id-al-Adha) and when he came. some meat was presented to him. and the people said (to him), 'This is the meat of our sacrifices" He said. 'Take it away; I shall not taste it. (In his narration) Abu Sa`id added: I got up and went to my brother, Abu Qatada (who was his maternal brother and was one of the warriors of the battle of Badr) and mentioned that to him He Sa`d. 'A new verdict was given in your absence (i.e., meat of sacrifices was allowed to be stored and eaten later on).
We used to salt some of the meat of sacrifice and present it to the Prophet (ﷺ) at Medina. Once he said, "Do not eat (of that meat) for more than three days." That was not a final order, but (that year) he wanted us to feed of it to others, Allah knows better.