Answer
(Fatwa: 1134/705/L=1432)
Almighty Allah intends to show His power from Solar and Lunar eclipses that as Almighty Allah has power in lighting (the sun and the moon) in the same way He also has the power to take away their lights. It also reveals that their light is not their own rather it is gifted by Allah and they are subject to Almighty Allah in enlightening the world. One should offer salah, do zikr, dua and istighfar and give charity at the time of solar and lunar eclipses.
Allah (Subhana Wa Ta’ala) knows Best
Darul Ifta,
Darul Uloom Deoband