Jabir bin '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).
Hadith ReferenceSahih Muslim / The Book of Sacrifices / Hadith: 1972