Dhakwan Abu Salih (may Allah have mercy on him) says: In the time of the Prophet (peace and blessings be upon him) two Eids coincided, that is, the day of Jumu'ah and the day of Eid. He (peace and blessings be upon him) led the Eid prayer, then stood and addressed the people: "You have attained remembrance and good, but we will offer the Jumu'ah. Whoever would like to stay seated, let him stay seated, and whoever would like to attend the Jumu'ah, let him attend it."
It is also narrated from Sufyan bin Uyaynah from Abd al-Aziz as a connected report, restricted to the people of al-Awali, and there is weakness in its chain; and it is narrated from Umar bin Abd al-Aziz from the Prophet (peace and blessings be upon him), restricted to the people of al-Aliyah, except that it is munqati' (broken).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب صلاة العيدين / 6289