Regarding "And We did not make the vision which We showed you except as a trial for the people" [Isra 17:60], he said this refers to something the Prophet ﷺ was shown while awake, which he saw with his own eyes when he was taken on the night journey to Bayt al-Maqdis.
حدثنا روح حدثنا زكريا بن إسحاق حدثنا عمرو بن دينار أنه سمع عكرمة يقول كان
{وما جعلنا الرؤيا التي أريناك إلا فتنة للناس} قال شيء أريه النبي ﷺ في اليقظة رآه بعينه حين أسري به إلى بيت المقدس