This is a misconception. In Hinduism, God (Ishwar, Brahman) does not have wife or children, as the God principle is unmanifest. In the context of Deities, the male deity is thePurushor Principle aspect of God, the female deity is thePrakrutior Energy aspect of God, and children refer to the combination of those Divine Principles and Energies. For example, Sree Durga is the Divine Energy of Shiva who is the Destroyer principle of God, and Sree Ganesh is the Divine Principle spiritually born of Sree Durga and Shiva principles. It is like the color yellow comes from a combination of green and blue colors.