(4) باب صَلاَةِ الْكُسُوفِ
Narrated A'ishah (May Allah be pleased with her):
There was an eclipse of the sun in the time of the Prophet (ﷺ). The Prophet stood for a long time, accompanied by the people. He then bowed, then raised his head, then he bowed and then he raised his head, and again he bowed and prayed two rak'ahs of prayer. In each rak'ah he bowed three times. After bowing for the third time he prostrated himself. He stood for such a long time that some people became unconscious on that occasion and buckets of water had to be poured on them. When he bowed, he said, Allah is most great; and when he raised his head, he said, Allah listens to him who praises Him, till the sun became bright. then he said: The sun and the moon are not eclipsed on account of anyone's death or on account of anyone's birth, but they are two of Allah's signs, He produces dread in His servants by means of them. When they are eclipsed, hasten to prayer
Reference: Sunan Abi Dawud 1177
In-book reference: Book 3, Hadith 17
English translation: Book 3, Hadith 1173