Sunan An-Nasa'i - سنن النسائي
16. The Book of Eclipses - كتاب الكسوف
5) Chapter: The command to pray when there is an eclipse until it is over
It was narrated that Abu Bakrah said:
"We were sitting with the Prophet (ﷺ) when the sun became eclipsed. He leapt up, dragging his garment and prayed two rak'ahs until the eclipse was over."
5) باب الأَمْرِ بِالصَّلاَةِ عِنْدَ الْكُسُوفِ حَتَّى تَنْجَلِيَ
أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ، وَمُحَمَّدُ بْنُ عَبْدِ الأَعْلَى، قَالاَ حَدَّثَنَا خَالِدٌ، قَالَ حَدَّثَنَا أَشْعَثُ، عَنِ الْحَسَنِ، عَنْ أَبِي بَكْرَةَ، قَالَ كُنَّا جُلُوسًا مَعَ النَّبِيِّ صلى الله عليه وسلم فَكَسَفَتِ الشَّمْسُ فَوَثَبَ يَجُرُّ ثَوْبَهُ فَصَلَّى رَكْعَتَيْنِ حَتَّى انْجَلَتْ .