أَخْبَرَنَاهُ عُمَرُ بْنُ عَبْدِ الْعَزِيزِ بْنِ عُمَرَ بْنِ قَتَادَةَ، أنبأ أَبُو الْحَسَنِ بْنُ الْحَسَنِ بْنِ الْحُسَيْنِ بْنِ مَنْصُورٍ، ثنا مُحَمَّدُ بْنُ يَحْيَى بْنِ سُلَيْمَانَ، ثنا عَاصِمُ بْنُ عَلِيٍّ، ثنا شُعْبَةُ، عَنْ مُحَمَّدِ بْنِ النُّعْمَانِ قَالَ: سَمِعْتُ أَبَا قَيْسٍ يُحَدِّثُ عَنْ هُزَيْلٍ، أَنَّ عَلِيًّا " أَمَرَ رَجُلًا أَنْ يُصَلِّيَ بِضَعَفَةِ النَّاسِ فِي الْمَسْجِدِ يَوْمَ فِطْرٍ أَوْ يَوْمَ أَضْحَى، وَأَمَرَهُ أَنْ يُصَلِّيَ أَرْبَعًا ". وَرَوَاهُ الثَّوْرِيُّ، عَنْ أَبِي قَيْسٍ، وَيُحْتَمَلُ أَنْ يَكُونَ أَرَادَ رَكْعَتَيْنِ تَحِيَّةَ الْمَسْجِدِ ثُمَّ رَكْعَتَيِ الْعِيدِ مَفْصُولَتَيْنِ عَنْهُمَا.
Huzayl (may Allah have mercy on him) says that Sayyiduna Ali (may Allah be pleased with him) ordered a man to lead the weak people in the Eid al-Fitr or Eid al-Adha prayer in the mosque, and to pray four rak'ahs with them.
It is possible that he meant two rak'ahs of tahiyyat al-masjid (greeting the mosque), and then two rak'ahs of the Eid prayer, separate from them.