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."

Azami 417

Sahih

عن عائشة قالت

من حدثك أن محمدا رأى ربه فقد كذب وهو يقول: {لا تدركه الأبصار} [سورة الأنعام: ١٠٣]، ومن حدثك أنه يعلم الغيب فقد كذب، وهو يقول: لا يعلم الغيب إلا الله.

الأعظمي 417صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Faith in Allah عز وجل
Section
None knows the unseen except Allah, glorified and exalted is He
Numbering
Jami al-Kamil 417 (2nd edition)
Azami 417