Bulugh al-Maram
Book 2, Hadith 420
وَعَنْ أَبِي سَعِيدٍ قَالَ: { كَانَ رَسُولُ اَللَّهِ - صلى الله عليه وسلم -لَا يُصَلِّي قَبْلَ اَلْعِيدِ شَيْئًا, فَإِذَا رَجَعَ إِلَى مَنْزِلِهِ صَلَّى رَكْعَتَيْنِ } رَوَاهُ اِبْنُ مَاجَهْ بِإِسْنَادٍ حَسَنٍ 1 .1 - حسن. رواه ابن ماجه (1293) ولا يظن ظان أن بين هذا الحديث وبين حديث ابن عباس السابق (491) تعارض فحديث ابن عباس خاص بالصلاة في المصلى، وبهذا الجمع قال غير واحد.
Abu Said reported: The Messenger of Allah ﷺ would not pray anything before the Eid prayer. When he returned home, he would pray two rakahs. Ibn Majah (1293); the report is hasan. There is no contradiction with the earlier report of Ibn Abbas (no. 491): Ibn Abbas refers specifically to prayer at the prayer ground, while this report concerns prayer at home. More than one scholar has reconciled them this way.
Translation notes
The source distinguishes optional prayer at the prayer ground from prayer performed after returning home.