Narrated Zirr bin Hubaish:
"I said to Hudhaifah bin Al-Yaman: 'Did the Messenger of Allah (ﷺ) perform Salat in Bait Al-Maqdis?' He said: 'No.' I said: 'But he did.' He said: 'You say that, O bald one! Based upon what do you say that?' I said: 'Based upon the Qur'an, (the Judge) between you and I is the Qur'an.' So Hudhaifah said: 'Whoever argues using the Qur'an, then he has indeed succeeded.'" (One of the narrators) Sufyan said: "He means: 'He has indeed proven'" - and perhaps he (Sufyan) said: "He triumphed." He (Zirr) said: "Glorified is He Who took His slave for a journey by night from Al-Masjid Al-Haram to Al-Masjid Al-Aqsa (17:1).' He (Hudhaifah) said: 'Do you see (this proves that) he (ﷺ) performed Salat in it?' I said: 'No.' He said: 'If he had performed Salat in it, then it would have been required upon you that you perform Salat in it, just as it is required that you perform Salat in Al-Masjid Al-Haram.' Hudhaifah said: 'The Messenger of Allah (ﷺ) was brought a beast with a long back - stretching out like this - one stride of it, is as far as his vision. So, the two of them remained upon the back of Al-Buraq until they saw Paradise and the Fire, and all of what has been prepared for the Hereafter, then they returned back to where they began.' He said: 'They say that he was fettered, but for what? Because he might flee? The Knower of the unseen and the witness subdued him.'"
English reference: Vol. 5, Book 44, Hadith 3147
Arabic reference: Book 47, Hadith 3440