Islamic Interpretation of Dreams (Ibn-i Sirin):

If one sees himself struggling with death in a dream, it means arguing about his religion, or doubt about God’s revelations. Death rattling in a dream also signifies preparing to take a journey, marriage of an unmarried person, moving from one house to a new one, changing one’s trade or repaying one’s debt, or divorcing one’s wife.

If one sees himself in agony in his deathbed, combating the throes and pangs of death in a dream, it means that he is unjust toward himself or others.

(Also see Death)