From Sahih Muslim (Hadith 5106):
Jabir b. 'Abdullah reported:We did not eat the flesh of sacrificed animals beyond three (days), but then Allah's Messenger (ﷺ) commanded us to make it a provision for journey and cat it (beyond three days)
Reference: Muslim 5106