Volume 2, Book 18, Number 167:
Narrated Abu Musa:
The sun eclipsed and the Prophet got up, being afraid that it might be the Hour (i.e. Day of Judgment). He went to the Mosque and offered the prayer with the longest Qiyam, bowing and prostration that I had ever seen him doing. Then he said, "These signs which Allah sends do not occur because of the life or death of somebody, but Allah makes His worshipers afraid by them. So when you see anything thereof, proceed to remember Allah, invoke Him and ask for His forgiveness."
Volume 2, Book 18, Number 168:
Narrated Al-Mughira bin Shu'ba :
On the day of Ibrahim's death, the sun eclipsed and the people said that the eclipse was due to the death of Ibrahim (the son of the Prophet). Allah's Apostle said, "The sun and the moon are two signs amongst the signs of Allah. They do not eclipse because of someone's death or life. So when you see them, invoke Allah and pray till the eclipse is clear."
Volume 2, Book 18, Number 169:
Narrated Abu Bakra:
In the life-time of the Prophet the sun eclipsed and then he offered a two Rakat prayer.
Volume 2, Book 18, Number 170:
Narrated Abu Bakra:
In the life-time of the Allah's Apostle (p.b.u.h) the sun eclipsed and he went out dragging his clothes till he reached the Mosque. The people gathered around him and he led them and offered two Rakat. When the sun (eclipse) cleared, he said, "The sun and the moon are two signs amongst the signs of Allah; they do not eclipse because of the death of someone, and so when an eclipse occurs, pray and invoke Allah till the eclipse is over." It happened that a son of the Prophet called Ibrahim died on that day and the people were talking about that (saying that the eclipse was caused by his death).
Volume 2, Book 18, Number 171:
The Prophet led us and performed four bowing in two Rakat during the solar eclipse and the first Raka was longer.
Volume 2, Book 18, Number 172:
The Prophet (p.b.u.h) recited (the Quran) aloud during the eclipse prayer and when he had finished the eclipse prayer he said the Takbir and bowed. When he stood straight from bowing he would say "Sami 'al-l-ahu Lyman hamidah Rabbana walaka-l-hamd." And he would again start reciting. In the eclipse prayer there are four bowing and four prostrations in two Rakat. Al-Auza'i and others said that they had heard Az-Zuhi from 'Ursa from 'Aisha saying, "In the life-time of Allah's Apostle the sun eclipsed, and he made a person to announce: 'Prayer in congregation.' He led the prayer and performed four bowing and four prostrations in two Rakat." Narrated Al-Walid that 'Abdur-Rahman bin Namir had informed him that he had heard the same. Ibn Shihab heard the same. Az-Zuhrl said, "I asked ('Ursa), 'What did your brother 'Abdullah bin AzZubair do? He prayed two Rakat (of the eclipse prayer) like the morning prayer, when he offered the (eclipse) prayer in Median.' 'Ursa replied that he had missed (i.e. did not pray according to) the Prophet's tradition." Sulaiman bin Kathir and Sufyan bin Husain narrated from Az-Zuhri that the prayer for the eclipse used to be offered with loud recitation.