Some people during the time of the Prophet ﷺ asked, "Messenger of Allah, will we see our Lord on the Day of Resurrection?"The Prophet ﷺ replied, "Do you have any difficulty seeing the sun at midday when there are no clouds?"They said, "No."He asked, "Do you have any difficulty seeing the moon on the night of Badr when there are no clouds?"They said, "No."The Prophet ﷺ said, "You will have no more difficulty seeing Allah on the Day of Resurrection than you have seeing either of these two."
أن أناسا في زمن النبي ﷺ قالوا: يا رسول الله، هل نرى ربنا يوم القيامة؟ قال النبي ﷺ: نعم، هل تضارون رؤية الشمس بالظهيرة، ضوء ليس فيها سحاب؟ قالوا: لا. قال: وهل تضارون في رؤية القمر ليلة البدر، ضوء ليس فيها سحاب؟ قالوا: لا. قال النبي ﷺ: ما تضارون في رؤية الله عز وجل يوم القيامة إلا كما تضارون في رؤية أحدهما.
Bukhari narrated it in the tafsir (4581), and Muslim in the Faith (183), both from the hadith of Hafs bin Maysara, from Zayd bin Aslam, from Ata bin Yasar, from Abu Saeed Khudri, and he related the hadith within a long context. See: the chapter on the Sirat being a bridge over Hell.