"If there be a prophet among you, the Lord make Myself known unto him in a vision, I do speak with him in a dream" (Numbers 12:6). He does not speak with him by day, but at night and in a dream. And it is not made known to him in a vision that he is seeing Me; rather, it appears to him as if he sees Me, yet he does not see Me, but only as one who is dreaming, and it appears to him that he is dreaming.
How God Speaks to Prophets Other Than Moses by Night
Midrash Aggadah, Numbers 12:6
אם יהיה נביאכם ה' במראה אליו אתודע בחלום אדבר בו. אינו מדבר עמו ביום אלא בלילה ובחלום ואינו נודע לו במראה שהוא רואה אותי אלא נראה לו כאילו רואה אותי ואינו רואה אותי אלא כמו שהוא חולם ונראה לו שהוא חולם: