Most of the Sahaabah were of the view that the Prophet (peace and blessings of Allah be upon him) did not see Allah with his eyes on the night of the Miraaj.
It was narrated that ‘Aa’ishah (may Allah be pleased with her) said: “Whoever told you that Muhammad (peace and blessings of Allah be upon him) saw his Lord was lying. He said that no vision can grasp him [cf. al-An’aam 6:103]…”
(Narrated by al-Bukhaari, al-Tawheed, 6832).
It was narrated that Abu Dharr said: “I asked the Messenger of Allah (peace and blessings of Allaah be upon him), ‘Did you see your Lord?’ He said, ‘ He is veiled by Light, how could I see Him.’” (Narrated by Muslim, al-Eeman, 261).
It was narrated that Ibn ‘Abbaas said: “ ‘The (Prophet’s) heart belied not what he saw, and indeed he saw Him at a second descent.’ [al-Najm 53:11-12] (This means that) he saw Him twice with his heart.” (Narrated by Muslim, al-Eemaan, 258).
Ibn al-Qayyim said: “ ‘Uthmaan ibn Sa’eed al-Daarimi said in his book al-Ru’yah that there was consensus among the Sahaabah that he [the Prophet (peace and blessings of Allah be upon him)] did not see his Lord on the night of the Mi’raaj. Some of them excluded Ibn ‘Abbaas and said that he was not one of those who said that.
There is nothing in the Qur’aan or Sunnah to indicate that, rather the saheeh texts which indicate that he did not see Him are more definitive. In Saheeh Muslim it is narrated that Abu Dharr said: ‘I asked the Messenger of Allaah (peace and blessings of Allaah be upon him), “Did you see your Lord?” He said, “He is veiled with Light, how could I see Him?”’ And Allaah says (interpretation of the meaning):
‘Glorified (and Exalted) be He (Allaah) [above all that (evil) they associate with Him]
Who took His slave (Muhammad) for a journey by night from Al-Masjid Al-Haraam (at Makkah) to Al-Masjid Al-Aqsaa (in Jerusalem), the neighbourhood whereof We have blessed, in order that We might show him (Muhammad) of Our Ayaat (proofs, evidences, lessons, signs, etc.)’
[al-Isra’ 17:1]
If he had seen Him with his own eyes, that He would have mentioned that. The same applies to the words “Will you then dispute with him (Muhammad) about what he saw [during the Mi’raaj]?” [al-Najm 53:12 – interpretation of the meaning]. If he had seen Him with his own eyes, that would have been mentioned.
It is proven from the saheeh texts and from the consensus of the salaf (first generations) of this ummah that no one can see Allah with his eyes in this world, with the exception of the claim made by some that our Prophet Muhammad alone saw Him. But they are agreed that the believers will see Allah on the Day of Resurrection with their own eyes just as they see the sun and the moon (in this world).”