فَقَدْ أَخْبَرَنَا أَبُو سَعِيدِ بْنُ أَبِي عَمْرٍو، ثنا أَبُو الْعَبَّاسِ، أنبأ الرَّبِيعُ قَالَ: قَالَ الشَّافِعِيُّ: عَنِ ابْنِ عُلَيَّةَ، عَنْ لَيْثٍ، عَنِ الْحَكَمِ، عَنْ حَنَشِ بْنِ الْمُعْتَمِرِ، أَنَّ عَلِيًّا رَضِيَ اللهُ عَنْهُ قَالَ: " صَلُّوا يَوْمَ الْعِيدِ فِي الْمَسْجِدِ أَرْبَعَ رَكَعَاتٍ، رَكْعَتَانِ لِلسُّنَّةِ، وَرَكْعَتَانِ لِلْخُرُوجِ ".
Hanash bin al-Mu'tamir says that Sayyiduna Ali (may Allah be pleased with him) said: Pray four rak'ahs in the mosque on the day of Eid: two rak'ahs for the Sunnah and two rak'ahs for going out.
Abu Ishaq narrates from Sayyiduna Ali (may Allah be pleased with him) that he ordered a man to lead the weak people in four rak'ahs of prayer in the mosque on the day of Eid.