From Sahih Muslim (Hadith 5105):
Jabir b. Abdullah reported:We did not eat the flesh of our sacrificial animals beyond three days in Mina. Then Allah's Messenger (ﷺ) permitted us saying: Eat and make it a provision (for journey). I asked 'Ata' whether Jabir had also said: Till we came to Medina. He said: Yes
Reference: Muslim 5105