Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:1311Muḥammad b. al-Muṣaffá al-Ḥimṣī > Baqiyyah > Shuʿbah > Mughīrah al-Ḍabbī > ʿAbd al-ʿAzīz b. Rufayʿ > Abū Ṣāliḥ > Ibn ʿAbbās

“Two ‘Eid have come together on this day of yours. So whoever wants, that (the ‘Eid prayer) will suffice him, and he will not have to pray Friday, but we will pray Friday if Allah wills.” Another chain with similar wording.  

ابن ماجة:١٣١١حَدَّثَنَا مُحَمَّدُ بْنُ الْمُصَفَّى الْحِمْصِيُّ حَدَّثَنَا بَقِيَّةُ حَدَّثَنَا شُعْبَةُ حَدَّثَنِي مُغِيرَةُ الضَّبِّيُّ عَنْ عَبْدِ الْعَزِيزِ بْنِ رُفَيْعٍ عَنْ أَبِي صَالِحٍ عَنِ ابْنِ عَبَّاسٍ

عَنْ رَسُولِ اللَّهِ ﷺ أَنَّهُ قَالَ اجْتَمَعَ عِيدَانِ فِي يَوْمِكُمْ هَذَا فَمَنْ شَاءَ أَجْزَأَهُ مِنَ الْجُمُعَةِ وَإِنَّا مُجَمِّعُونَ إِنْ شَاءَ اللَّهُ حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى حَدَّثَنَا يَزِيدُ بْنُ عَبْدِ رَبِّهِ حَدَّثَنَا بَقِيَّةُ حَدَّثَنَا شُعْبَةُ عَنْ مُغِيرَةَ الضَّبِّيِّ عَنْ عَبْدِ الْعَزِيزِ بْنِ رُفَيْعٍ عَنْ أَبِي صَالِحٍ عَنْ أَبِي هُرَيْرَةَ عَنِ النَّبِيِّ ﷺ نَحْوَهُ