It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Ansar had two days in the Days of Ignorance in which they would play and amuse themselves. So when the Messenger of Allah (peace and blessings be upon him) came, he (peace and blessings be upon him) said: "Allah, the Mighty and Majestic, has given you in place of those two days two days better than them: Eid al-Fitr and Eid al-Adha."
These are the words of (Abd al-Wahhab) al-Thaqafi (may Allah have mercy on him).
Yazid bin Harun (may Allah have mercy on him) narrated that the Messenger of Allah (peace and blessings be upon him) came while they had two days in which they would play and amuse themselves, so the Messenger of Allah (peace and blessings be upon him) said: "I have come to you while you had two days in which you used to play, and Allah, the Mighty and Majestic, has indeed given you in place of those two days two days better than them: the day of Eid al-Fitr and the day of sacrifice (Nahr)."
Muhammad bin Abi Adi (may Allah have mercy on him) also narrated it from Humayd (may Allah have mercy on him).