expresses
the old superstition that a dream may foretell an event opposite to what was dreamed, such as a wedding following a dream of a funeral; it is not a reliable prediction.
similar
Dreams go by contraries
When a superstition, of the principle that dreams are contrary to reality., the saying “Dream of a funeral and you hear of a marriage” is appropriate.