Language:
كتاب التفسير
65  
Prophetic Commentary on the Qur'an (Tafseer of the Prophet (pbuh))
(9)
"And We made not the vision which We showed you (O Muḥammad [pbuh] as an actual eye-witness and not as a dream on the night of Al-Isrā') , but a trial for mankind..." (V.17:60)
(9)
Sahih al-Bukhari 4716

Narrated Ibn `Abbas:

Regarding: 'And We granted the vision (Ascension to the Heaven "Miraj") which We showed you (O Muhammad as an actual eye witness) but as a trial for mankind.' (17.60) It was an actual eyewitness which was shown to Allah's Messenger (ﷺ) during the night he was taken on a journey (through the heavens). And the cursed tree is the tree of Az-Zaqqum (a bitter pungent tree which grows at the bottom of Hell).

حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ اللَّهِ، حَدَّثَنَا سُفْيَانُ، عَنْ عَمْرٍو، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنه ـ ‏{‏وَمَا جَعَلْنَا الرُّؤْيَا الَّتِي أَرَيْنَاكَ إِلاَّ فِتْنَةً لِلنَّاسِ‏}‏ قَالَ هِيَ رُؤْيَا عَيْنٍ أُرِيَهَا رَسُولُ اللَّهِ صلى الله عليه وسلم لَيْلَةَ أُسْرِيَ بِهِ ‏{‏وَالشَّجَرَةَ الْمَلْعُونَةَ‏}‏ شَجَرَةُ الزَّقُّومِ‏.‏
Reference : Sahih al-Bukhari 4716
In-book reference : Book 65, Hadith 238
USC-MSA web (English) reference : Vol. 6, Book 60, Hadith 240
  (deprecated numbering scheme)