Seeing worms in your dream can symbolize your children or daughters. It indicates that your children are under your protection and care. Since worms typically dwell underground, this may also suggest that related matters could be hidden or not visible. This dream serves as a reminder of the importance of being nurturing and protective towards your children.
From Imam Muhammad Ibn Seerin's Dictionary of Dreams According to Islamic Inner Traditions â entry "Worms" (page 481).
In a dream, worms represent daughters or children living under their father. The same goes for all worms, annelids, intestinal worms, or parasites that live on cadavers. Seeing tapeworms coming out of one's backside in a dream represents one's grandchildren. If one sees worms coming out of his mouth in a dream, it means that some members of his family are plotting against him, though he knows about it, and he will finally escape from their danger, but at his own expense. If one sees worms coming out of his stomach in a dream, it means that he will distance himselffrom evil companions. Consequently, he will regain honor and purity. Worms leaving one's body in a dream mean overcoming distress, or paying alms tax. Worms in a dream also represent one's enemies. A silkworm in a dream means a customer in one's shop, or it could represent one's profession. Silkworms in a dream usually mean financial benefits, though in some circles they represent illegal money, or guesswork. (Also see Earth worm)
Note: Islamic dream interpretation depends on the dreamer's circumstances and state. This is a general guide drawn directly from the source book.