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.
ahmad:7080Yaḥyá b. Ādam > Abū Bakr > Abū Isḥāq > al-Sāʾib b. Mālik > ʿAbdullāh b. ʿAmr

[Machine] When the son of the Messenger of Allah ﷺ passed away, the sun eclipsed. The Messenger of Allah ﷺ stood up and prayed two Rak'ahs. He stayed in the standing position for a long time, then he performed a bowing and prostrating posture similar to his standing. He performed two Rak'ahs in the same manner. Then he said the final salutation.  

أحمد:٧٠٨٠حَدَّثَنَا يَحْيَى بْنُ آدَمَ حَدَّثَنَا أَبُو بَكْرٍ عَنْ أَبِي إِسْحَاقَ عَنِ السَّائِبِ بْنِ مَالِكٍ عَنْ عَبْدِ اللهِ بْنِ عَمْرٍو قَالَ

لَمَّا تُوُفِّيَ إِبْرَاهِيمُ ابْنُ رَسُولِ اللهِ ﷺ كَسَفَتِ الشَّمْسُ فَقَامَ رَسُولُ اللهِ ﷺ فَصَلَّى رَكْعَتَيْنِ فَأَطَالَ الْقِيَامَ ثُمَّ رَكَعَ مِثْلَ قِيَامِهِ ثُمَّ سَجَدَ مِثْلَ رُكُوعِهِ فَصَلَّى رَكْعَتَيْنِ كَذَلِكَ ثُمَّ سَلَّمَ