When an eclipse occurs Muslims are encouraged to perform eclipse prayers. This is exemplified by Rasulullah Muhammad SAW.
When he came to the eclipse, Rasulullah Muhammad SAW, went directly to the mosque to perform the eclipse prayer.
This event is narrated by the wife of Rasulullah Muhammad SAW, Asisyah who found the Prophet Muhammad SAW, was driving in the morning and then eclipse.
So Rasulullah Muhammad SAW, passing his wife's room Aisyah not far from the mosque, then Muhammad stood up and prayed.