Narrated 'Abdullah bin Shaqiq: "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.'"
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا مَحْمُودُ بْنُ غَيْلاَنَ، حَدَّثَنَا وَكِيعٌ، وَيَزِيدُ بْنُ هَارُونَ، عَنْ يَزِيدَ بْنِ إِبْرَاهِيمَ التُّسْتَرِيِّ، عَنْ قَتَادَةَ، عَنْ عَبْدِ اللَّهِ بْنِ شَقِيقٍ، قَالَ قُلْتُ لأَبِي ذَرٍّ لَوْ أَدْرَكْتُ النَّبِيَّ صلى الله عليه وسلم فَسَأَلْتُهُ . فَقَالَ عَمَّا كُنْتَ تَسْأَلُهُ قُلْتُ كُنْتُ أَسْأَلُهُ هَلْ رَأَى مُحَمَّدٌ رَبَّهُ فَقَالَ قَدْ سَأَلْتُهُ فَقَالَ " نُورٌ أَنَّى أَرَاهُ " . قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ .
sunnah.com