It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) came (to Madinah) while the people of Madinah had two (fixed) days in which they used to play and amuse themselves in the Days of Ignorance. So he (peace and blessings be upon him) said: "Indeed, Allah, the Mighty and Majestic, has given you in place of those two two days better than them: the day of Eid al-Fitr and Eid al-Adha."
Hammad (may Allah have mercy on him) narrated it from Humayd (may Allah have mercy on him), and he mentioned (Humayd's) hearing it from Sayyiduna Anas (may Allah be pleased with him).