It is narrated from Ikrimah (regarding the saying of Allah Almighty): "And We did not make the vision which We showed you except as a trial for people." Ikrimah says: This is something that was shown to the Prophet (peace and blessings be upon him) while he was awake; he saw it with his physical eyes. This was when he was taken to Bayt al-Maqdis.
Imam Ahmad recorded it as a "mawquf" narration on Ikrimah, and its chain contains a narrator, Ibn Ishaq, who is a mudallis (one who conceals a gap in the chain).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الإيمان / 248