While Pilate was sitting on the judge's seat, his wife sent him this message: "Don't have anything to do with that innocent man, for I have suffered a great deal today in a dream because of him."
This is a different kind of a dream- not a message, per se, or a daydream, but the woman's own thoughts and feelings, rolling around in her brain all night, and convincing her by morning that her husband shouldn't get involved with the "handling" of Jesus. God is involved in everything that we do, so I suppose God was part of the woman's dreaming in some way, but scripture doesn't present this as a message from God, in my view. In any event, she was right and her intuition was right, but the dream was ignored. I have to admit, I ignore 99% of my dreams. I don't remember ever having a dream which I felt was a message from God- not directly, anyway.
Holy Lord, my dreams are a mess of problems and multiple unsuccessful solutions. If you were to speak to me in a dream, it would be so very different than what I usually dream about, I do think I would notice. If you are trying to get through to me, a dream would probably work! 😇