Sayyiduna Ibn Umar (may Allah be pleased with them both) said: Two Eids coincided in the time of the Messenger of Allah (peace and blessings be upon him): Eid al-Fitr and Friday. So the Messenger of Allah (peace and blessings be upon him) led them in the Eid prayer, then turned his face towards them and said: "O people! You have attained good and reward, and we are going to hold the Friday prayer. So whoever wishes to join us in the Friday prayer, let him do so, and whoever wishes to return to his family, let him go."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13534