Seeing an eclipse in your dream signifies ominous signs or impending disasters in your life. If you witness a solar eclipse, it indicates danger for the country's leader or ruler. Conversely, a lunar eclipse suggests unfortunate events for the Prime Minister. Such dreams may urge you to remain aware of the circumstances around you and the political climate.
From Imam Muhammad Ibn Seerin's Dictionary of Dreams According to Islamic Inner Traditions â entry "Eclipse" (page 138).
Seeing a solar eclipse in a dream means that a calamity will befall the leader of a country, while a lunar eclipse represents a calamity that will befall the prime minister. It is also said that a solar eclipse in a dream signifies the death of one's wife or his mother. If a cloud covers the light of the sun in a dream, it means that a sickness will befall the leader of the country or the governor of the land. If one sees the sun moving above the clouds but cannot come from under it in a dream, it means his death. The sun in a dream also may represent a great scholar. A cloud covering the sunlight in a dream means the fall of an unjust ruler. (Also see Moon; Sun)
Note: Islamic dream interpretation depends on the dreamer's circumstances and state. This is a general guide drawn directly from the source book.