The Prophet ﷺ did not see Allah
I asked the Messenger of Allah ﷺ: Did you see thy Lord? He said: (He is) Light; how could I see Him?
سَأَلْتُ رَسُولَ اللَّهِ ﷺ هَلْ رَأَيْتَ رَبَّكَ قَالَ نُورٌ أَنَّى أَرَاهُ
I asked the Messenger of Allah ﷺ: Did you see thy Lord? He said: (He is) Light; how could I see Him?
سَأَلْتُ رَسُولَ اللَّهِ ﷺ هَلْ رَأَيْتَ رَبَّكَ قَالَ نُورٌ أَنَّى أَرَاهُ
"I said to Abu Dharr: 'If I saw the Prophet ﷺ then I would asked him." He said: 'What is it that you would have asked him about?' I said: 'I would have asked him if Muhammad saw his Lord?' He said: 'I did ask him that, and he ﷺ said: I saw light.'"
قُلْتُ لأَبِي ذَرٍّ لَوْ أَدْرَكْتُ النَّبِيَّ ﷺ فَسَأَلْتُهُ فَقَالَ عَمَّا كُنْتَ تَسْأَلُهُ قُلْتُ كُنْتُ أَسْأَلُهُ هَلْ رَأَى مُحَمَّدٌ رَبَّهُ فَقَالَ قَدْ سَأَلْتُهُ فَقَالَ نُورٌ أَنَّى أَرَاهُ
"I said to Abu Dharr: 'If I saw the Prophet ﷺ then I would asked him." He said: 'What is it that you would have asked him about?' I said: 'I would have asked him if Muhammad saw his Lord?' He said: 'I did ask him that, and he ﷺ said: I saw light.'" (Using translation from Tirmidhī 3282)
قُلْتُ لِأَبِي ذَرٍّ لَوْ أَدْرَكْتُ النَّبِيَّ ﷺ لَسَأَلْتُهُ قَالَ وَعَمَّا كُنْتَ تَسْأَلُهُ؟ قَالَ سَأَلْتُهُ هَلْ رَأَى رَبَّهُ ﷻ؟ قَالَ أَبُو ذَرٍّ قَدْ سَأَلْتُهُ فَقَالَ نُورٌ أَنَّى أَرَاهُ
[Machine] I said to Abu Dharr, "If I had met the Messenger of Allah ﷺ, I would have asked him." He said, "About what?" I said, "Have you seen your Lord?" He said, "I have asked him and he responded, 'I saw a light. How could I see Him when He is on the path of affirmation?'"
قُلْتُ لِأَبِي ذَرٍّ لَوْ أَدْرَكْتُ رَسُولَ اللهِ ﷺ سَأَلْتُهُ قَالَ عَنْ أَيِّ شَيْءٍ؟ قُلْتُ هَلْ رَأَيْتَ رَبَّكَ؟ فَقَالَ قَدْ سَأَلْتُهُ فَقَالَ نُورٌ أَنَّى أَرَاهُ يَعْنِي عَلَى طَرِيقِ الْإِيجَابِ
"نُورٌ أَنَّى أَرَاهُ".