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.
bayhaqi:6260Abū Saʿīd b. Abū ʿAmr > Abū al-ʿAbbās > al-Rabīʿ > al-Shāfiʿī > Ibn ʿUlayyah > Layth > al-Ḥakam > Ḥanash b. al-Muʿtamir > ʿAlī > Ṣallūā Yawm

[Machine] Pray four units of prayer on the day of the festival in the mosque, two units for the Sunnah and two units for leaving the mosque. Al-Shafi'i also said that Ibn Mahdi narrated from Sufyan, from Abu Ishaq, that Ali ordered a man to lead a small group of people in prayer on the day of the festival in the mosque, two units, and likewise.  

البيهقي:٦٢٦٠فَقَدْ أَخْبَرَنَا أَبُو سَعِيدِ بْنُ أَبِي عَمْرٍو ثنا أَبُو الْعَبَّاسِ أنبأ الرَّبِيعُ قَالَ قَالَ الشَّافِعِيُّ عَنِ ابْنِ عُلَيَّةَ عَنْ لَيْثٍ عَنِ الْحَكَمِ عَنْ حَنَشِ بْنِ الْمُعْتَمِرِ أَنَّ عَلِيًّا ؓ قَالَ

صَلُّوا يَوْمَ الْعِيدِ فِي الْمَسْجِدِ أَرْبَعَ رَكَعَاتٍ رَكْعَتَانِ لِلسُّنَّةِ وَرَكْعَتَانِ لِلْخُرُوجِ قَالَ وَقَالَ الشَّافِعِيُّ حِكَايَةً عَنِ ابْنِ مَهْدِيٍّ عَنْ سُفْيَانَ عَنْ أَبِي إِسْحَاقَ أَنَّ عَلِيًّا ؓ أَمَرَ رَجُلًا أَنْ يُصَلِّيَ بِضَعَفَةِ النَّاسِ يَوْمَ الْعِيدِ فِي الْمَسْجِدِ رَكْعَتَيْنِ وَكَذَلِكَ  

رَوَاهُ بُنْدَارٌ عَنْ عَبْدِ الرَّحْمَنِ بْنِ مَهْدِيٍّ غَيْرَ أَنَّهُ قَالَ عَنْ أَبِي إِسْحَاقَ عَنْ بَعْضِ أَصْحَابِهِ أَنَّ عَلِيًّا ؓ