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).