Sayyiduna Abu Hurayrah (may Allah be pleased with him) says: When two Eids fell on one day in the time of the Prophet (peace and blessings be upon him), he (peace and blessings be upon him) would say: "When your Eid and the Jumu'ah fall on one day, we will also offer the Jumu'ah. Whoever wishes to pray the Jumu'ah, let him pray it." When he (peace and blessings be upon him) had performed the Eid prayer, he then prayed the Jumu'ah as well.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب صلاة العيدين / 6287