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.
tabarani:12251Aḥmad b. al-Jaʿd al-Washhāʾ > Muḥammad b. Bakkār > Muḥammad b. al-Faḍl b. ʿAṭiyyah > Sālim al-Afṭas > Saʿīd b. Jubayr > Ibn ʿAbbās

[Machine] The Prophet ﷺ used to not pray before or after the two Eids.  

الطبراني:١٢٢٥١حَدَّثَنَا أَحْمَدُ بْنُ الْجَعْدِ الْوَشَّاءُ ثنا مُحَمَّدُ بْنُ بَكَّارٍ ثنا مُحَمَّدُ بْنُ الْفَضْلِ بْنِ عَطِيَّةَ عَنْ سَالِمٍ الْأَفْطَسِ عَنْ سَعِيدِ بْنِ جُبَيْرٍ عَنِ ابْنِ عَبَّاسٍ قَالَ

كَانَ النَّبِيُّ ﷺ «لَا يُصَلِّي فِي الْعِيدَيْنِ قَبْلَهَا وَلَا بَعْدَهَا»  


See similar narrations below:

Collected by Ibn Mājah
ibnmajah:1292ʿAlī b. Muḥammad > Wakīʿ

It was narrated from ‘Amr bin Shu’aib, from his father, from his grandfather, that the Prophet ﷺ did not pray before or after the ‘Eid prayer.  

ابن ماجة:١٢٩٢حَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ حَدَّثَنَا وَكِيعٌ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ عَبْدِ الرَّحْمَنِ الطَّائِفِيُّ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ

أَنَّ النَّبِيَّ ﷺ لَمْ يُصَلِّ قَبْلَهَا وَلاَ بَعْدَهَا فِي عِيدٍ