Some of the scholars have commented that it is possible to see Allaah in a dream.
Imaam al-Daarimi said, in his refutation of Bishr ibn Ghiyaath, “This seeing took place in a dream, and in a dream it is possible to see Allaah in any shape or form.” (p. 166)
Shaykh al-Islam Ibn Taymiyah said, “A believer may see his Lord in a dream, in various forms according to his faith and belief. If his eemaan is correct, he can only see Him in a beautiful form, and if his faith is lacking, this will be reflected in the way he sees Him. Seeing Allaah in a dream is not like seeing Him in reality. It may have different interpretations and meanings referring to something in reality.” (al-Fataawa, 3/390)
He also said, “Whoever sees Allaah in a dream sees Him in a form that corresponds to his own state. If he is righteous, he will see Him in a beautiful form, which is why the Prophet (peace and blessings of Allaah be upon him) saw him in the most beautiful form. (al-Fataawa, 5/251)
Shaykh ‘Abd al-Azeez ibn Baaz was asked about the ruling concerning one who claims to have seen the Lord of Glory in a dream, and whether it was true, as some claim, that Imaam Ahmad ibn Hanbal had seen the Lord of Glory in his dreams more than one hundred times. The Shaykh answered as follows:
“Shaykh al-Islam Ibn Taymiyah (may Allaah have mercy on him) and others said that it is possible for a man to see his Lord in a dream, but what he sees is not reality, because there is nothing like Allaah, may He be glorified and exalted. Allaah says (interpretation of the meaning): ‘… There is nothing like unto Him, and He is the All-Hearer, the All-Seer.’ [al-Shoora 42:11]. Nothing in His creation is like unto Him. A person may dream that his Lord is speaking to him, and no matter what kind of image he sees, that image is not Allaah, because there is nothing that is like Allaah in any way. Shaykh Taqiy al-Deen (may Allaah have mercy on him) mentioned that dreams differ according to the state of the person who is dreaming. The more righteous and closer to goodness a person is, the more correct his dream will be, but the truth is still something other than what he sees, because the guiding principle is still that there is nothing like unto Allaah.
He may hear a voice and be told such-and-such, or to do such-and-such, without any clear image resembling anything in creation, because there is nothing at all like unto Allaah… Some people may imagine that they have seen their Lord when in fact this is not the case. The Shaytaan may deceive a person and make him imagine that he is their Lord, as it was reported that he made ‘Abd al-Qaadir al-Jeelaani see him on a throne above water, and said, ‘I am your Lord and I freed you from doing any duties (worship, etc.).’ ‘Abd al-Qaadir al-Jeelaani said, ‘Get lost, O enemy of Allaah! You are not my Lord, because the commands of my Lord are not cancelled for anyone,’ or some similar words.