Ayesha reported,

Whoever tells you that Muhammad ﷺ saw his Lord has lied, for Allah says, "No vision can grasp Him" [Anam 6:103]. And whoever tells you that he knows the unseen has lied, for Allah says that none knows the unseen except Allah.

Bukhari 7380

Sahih

حدثنا محمد بن يوسف حدثنا سفيان عن إسماعيل عن الشعبي عن مسروق

عن عائشة رضي الله عنها قالت

من حدثك أن محمدا ﷺ رأى ربه فقد كذب وهو يقول {لا تدركه الأبصار} ومن حدثك أنه يعلم الغيب فقد كذب وهو يقول لا يعلم الغيب إلا الله

البخاري 7380صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
Saying of Allah the Exalted, "Knower of the unseen, and He does not reveal His unseen to anyone"
Numbering
Darussalam 7380
Bukhari 7380