Dreaming of exhuming a corpse indicates a desire to follow certain traditions, knowledge, or practices from your life. You may be interested in learning from your ancestors or adopting their habits. Additionally, this dream suggests the potential for earning money through legitimate means. It can also signify improvements in various aspects of your life and the beginning of new opportunities.
From Imam Muhammad Ibn Seerin's Dictionary of Dreams According to Islamic Inner Traditions â entry "Exhume" (page 146).
Exhuming the body of a deceased person and finding him alive in his grave in a dream means pursuing his tradition, knowledge, wisdom, trade or practices. It also means acquiring lawful money. Ifone finds him dead in his grave, then there is no benefit in his striving. A grave robber or a body snatcher in a dream represents a deliberate and a premeditated scheme to unravel a mystery, or forming an expedition to search for a hidden treasure. Digging the grave of a renowned scholar in a dream means studying his school of thought and the restoration of his studies, life, traditions and prominence. (Also see Graue digger; Graue)
Note: Islamic dream interpretation depends on the dreamer's circumstances and state. This is a general guide drawn directly from the source book.