عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ رَضِيَ اللَّهُ عَنْهُ قَالَ: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ يُفْطِرُ يَوْمَ الْفِطْرِ قَبْلَ أَنْ يَخْرُجَ، وَكَانَ لَا يُصَلِّي قَبْلَ الصَّلَاةِ، فَإِذَا قَضَى صَلَاتَهُ صَلَّى رَكْعَتَيْنِ
It is narrated from Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) used to eat something before going out to the Eidgah on the day of Eid al-Fitr, and he would not perform any prayer before the Eid prayer. However, after offering the Eid prayer, he would (return home and) perform two rak'ahs.