At Gibeon YHWH appeared to Solomon in a dream by night, and God said, “Ask what I shall give you.”
1 Kings 3:5
Dreams have always been one of God's primary channels of divine revelation to mankind. Abimelech, Jacob, Joseph, Pharaoh, the baker and cupbearer, Solomon, Jeremiah, etc… You don't need to be a prophet or interpreter of dreams to receive a dream from God. You just need to be a person whom God can use in his plans.