(regarding the Verse) "And We granted the vision (Ascension to the heavens "Miraj") which We showed you (O Muhammad as an actual eye witness) but as a trial for mankind.' (17.60): Allah's Apostle actually saw with his own eyes the vision (all the things which were shown to him) on the night of his Night Journey to Jerusalem (and then to the heavens). The cursed tree which is mentioned in the Qur'an is the tree of Az-Zaqqum.
هِيَ رُؤْيَا عَيْنٍ أُرِيهَا رَسُولُ اللَّهِ ﷺ لَيْلَةَ أُسْرِيَ بِهِ إِلَى بَيْتِ الْمَقْدِسِ قَالَ {وَالشَّجَرَةَ الْمَلْعُونَةَ فِي الْقُرْآنِ} قَالَ هِيَ شَجَرَةُ الزَّقُّومِ