The Holy Quran says...
Hence, these three methods of revelation should be interpreted in the effect of psychological conditions of the prophet and various divine emotions. In this case, sometimes the ethereal soul of the prophet rises up to the position of Jibraeel and he hears the divine revelation from him. But he does not see himself till he himself saw Jibraeel with his eyes. Sometimes the progress of his soul is to the limit that he hears the speech of Almighty Allah at a designated place like a tree etc.
In that case also, his soul rises up such a level that he sees the medium and hears the dialogue directly from Almighty Allah. Allamah Tabatabai (q) has mentioned the same point when he says: The proof of veil (Hijab) or the conveyer of the message at the time of speaking does not use the medium of revelation, because revelation like his other characters is not without a medium, only the pivot is the attention of the one who is addressed.
Thus if the prophet were to see through which he is getting divine revelation, and through this medium he veils the statement and message, which has come to him from Almighty Allah; like the medium of angel, in that case revelation is on that angel. Thus when the prophet looks at God, the revelation will be from Almighty Allah.