' A' isha, the wife of the Messenger of Allah (ﷺ), reported There was an eclipse of the sun during the lifetime of the Messenger of Allah (ﷺ). So, the Messenger of Allah (may peace he upon him) went to the mosque and stood up and glorified Allah, and the people formed themselves in rows behind him. The Messenger of Allah (ﷺ) made a long recital (of the Qur' an) and then pronounced takbir and then observed a long ruku'. He then raised his head and said: Allah listened to him who praised Him: our Lord, praise is due to Thee. He then again stood up and made a long recital, which was less than the first recital. He pronounced takbir and observed a long ruku', and it was less than the first one. He again said: Allah listened to him who praised Him; our Lord, praise is due to Thee. (Abu Tahir, one of the narrators) made no mention of: " He then prostrated himself." He did like this in the second rak' ah, till he completed four rak' ahs and four prostrations and the sun became bright before he deported. He then stood up and addressed people, after lauding Allah as He deserved, and then said: The sun and the moon are two signs among the signs of Allah These do not eclipse either on the death of anyone or on his birth. So when you see them, hasten to prayer. He also said this: Observe prayer till Allah dispels the anxiety (of this extraordinary phenomenon) from you. The Messenger of Allah (ﷺ) said: I saw in my place everything which you have been promised. I even saw myself desiring to pluck a bunch (of grapes) from Paradise (and it was at the time) when you saw me moving forward. And I saw Hell and some of its parts crushing the others, when you saw me moving back; and I saw in it Ibn Luhayy and he was the person who made the she-camels loiter about. In the hadith transmitted by Abu Tahir the words are: " He hastened to prayer," and he made no mention of what follows.
Sahih Muslim 901c
Chapters
1 Introduction 2 The Book of Faith 3 The Book of Purification 4 The Book of Menstruation 5 The Book of Prayers 6 The Book of Mosques and Places of Prayer 7 The Book of Prayer - Travellers 8 The Book of Prayer - Friday 9 The Book of Prayer - Two Eids 10 The Book of Prayer - Rain 11 The Book of Prayer - Eclipses 12 The Book of Prayer - Funerals 13 The Book of Zakat 14 The Book of Fasting 15 The Book of I'tikaf 16 The Book of Pilgrimage 17 The Book of Marriage 18 The Book of Suckling 19 The Book of Divorce 20 The Book of Invoking Curses 21 The Book of Emancipating Slaves 22 The Book of Transactions 23 The Book of Musaqah 24 The Book of the Rules of Inheritance 25 The Book of Gifts 26 The Book of Wills 27 The Book of Vows 28 The Book of Oaths 29 The Book of Oaths, Muharibin, Qasas(Retaliation), andDiyat(Blood Money) 30 The Book of Legal Punishments 31 The Book of Judicial Decisions 32 The Book of Lost Property 33 The Book ofJihadand Expeditions 34 The Book on Government 35 The Book of Hunting, Slaughter, and what may be Eaten 36 The Book of Sacrifices 37 The Book of Drinks 38 The Book of Clothes and Adornment 39 The Book of Manners and Etiquette 40 The Book of Greetings 41 The Book Concerning the Use of Correct Words 42 The Book of Poetry 43 The Book of Dreams 44 The Book of Virtues 45 The Book of the Merits of the Companions 46 The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship 47 The Book of Destiny 48 The Book of Knowledge 49 The Book Pertaining to the Remembrance of Allah, Supplication, Repentance and Seeking Forgiveness 50 The Book of Heart-Melting Traditions 51 The Book of Repentance 52 Characteristics of The Hypocrites And Rulings Concerning Them 53 Characteristics of the Day of Judgment, Paradise, and Hell 54 The Book of Paradise, its Description, its Bounties and its Inhabitants 55 The Book of Tribulations and Portents of the Last Hour 56 The Book ofZuhdand Softening of Hearts 57 The Book of Commentary on the Qur'an