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:6327al-Ḥasan al-Baṣrī > ʿAlī

[Machine] Ali prayed five units of prayer and four prostrations during the solar eclipse. Abu Sa'id ibn Abi 'Amr informed us, Abu al-Abbas narrated to us, Al-Rabi' reported, he said, Al-Shafi'i mentioned a story from Hushaym, from Yunus, from Al-Hasan regarding this matter. It is also mentioned that Ali prayed four units of prayer within one unit.  

البيهقي:٦٣٢٧وَيُذْكَرُ عَنِ الْحَسَنِ الْبَصْرِيِّ

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