Sahih Muslim 1511: The Eclipse Prayer
It is narrated from Hazrat Abdur Rahman bin Samurah (ra), who was one of the Companions (ra) of the Messenger of Allah (saw). He said: In the lifetime of the Messenger of Allah (saw) I was shooting my arrows in Medina. When the sun was eclipsed, I threw them down and said: By Allah! I will certainly go and see what new thing happened with the Messenger of Allah (saw) at the time of the solar eclipse. He said: I came to him (saw), and he (saw) was standing in Prayer (Salat) with both hands raised. He (saw) began to say “Subhanallah” (Holy is Allah), “Alhamdu lillah” (All praise belongs to Allah), “La ilaha illallah” (There is none worthy of worship except Allah) and “Allahu Akbar” (Allah is the Greatest), and to pray, until (that condition) was removed from it (the sun). The narrator said: (That condition) was removed. He (saw) recited two Surahs and offered two rak'at of Prayer. Another narration is narrated from Hazrat Abdur Rahman bin Samurah (ra), in which he said: While I was shooting my arrows in the time of the Messenger of Allah (saw), the sun was eclipsed. The rest of the narration is just like the first narration.
AI-translated by Islam-Today