The eclipse prayer

When you see an eclipse, pray and supplicate until it clears.

Narrated by al-Mughirah ibn Shu'bah

The sun and the moon do not eclipse for the death or life of anyone. When you see that, pray and call upon Allah.

Sahih al-Bukhari 1043, Sahih Muslim 915

What this hadith teaches

Eclipses are signs of Allah, not omens. The sunnah is to pray the special eclipse prayer, make dua, give charity and remember Allah.

Reference and grade

Grade
Sahih: agreed upon by al-Bukhari and Muslim
Narrator
al-Mughirah ibn Shu'bah

The hadith in Arabic نص الحديث

إِنَّ الشَّمْسَ وَالْقَمَرَ لاَ يَنْكَسِفَانِ لِمَوْتِ أَحَدٍ وَلاَ لِحَيَاتِهِ، فَإِذَا رَأَيْتُمْ فَصَلُّوا وَادْعُوا اللَّهَ

Arabic text of Sahih al-Bukhari 1043, as given on sunnah.com.