The one who loves is moved by the image of the beloved imagined in the self, he desires it, loves, gets angry, rejoices and becomes pleased upon remembering it in any way. So it remains like a prohibitive commander for him. And due to this he finds in his self that it is as if it speaks to him, commanding and prohibiting him, just as happens to the majority of people that see in their dreams someone they love and venerate. He commands, prohibits and informs them of matters.
Gardens of Purification by Ibn Taymiyyah Page 94