There was an ancient belief that the sun was masculine and the moon feminine.

The image of the sun and the moon appearing together in a dream follows that belief and suggests integration of masculine and feminine energies.