Bukhari Hadith on sSolar Lunar Eclipse Prayer Salat kusuf khusoof

Abu Bakrah Radiyallahu 'anhu narrates that during the time of Nabi Sallallahu 'alaihi wasallam there was an eclipse of the sun and he went to the Masjid (in a hurry), dragging his cloak and the Sahabah Radiyallahu 'anhum gathered around him.

 He led them in two Rak'at Salat, by that time the eclipse had cleared. Rasullullah Sallallahu 'alaihi wasallam said:
  Indeed the sun and the moon are two signs among the signs of Allah. An eclipse does not occur due to someone's death (as it was ignorantly thought in those days; indeed all these natural phenomena occur only by the command of Allah). 
So when an eclipse occurs, offer Salat and continue to invoke Allah's mercy till the eclipse is over. 

It so happened that Ibrahim, the son of Rasullullah Sallallahu 'alaihi wasallam, died on that day and people were talking about it (saying the eclipse was caused by his death).
 (Bukhari Shareef)