The Messenger of Allah ﷺ said, "I was brought Buraq..." and he then narrated the hadith of the Night Journey and Ascension, in which he said:"Then we ascended to the second heaven. Jibreel asked for it to be opened.It was said, 'Who are you?'He replied, 'Jibreel.'It was said, 'And who is with you?'He answered, 'Muhammad ﷺ.'It was said, 'Has he been sent for?'He replied, 'He has indeed been sent for.'So it was opened for us, and there I was with two maternal cousins, Isa son of Maryam and Yahya son of Zakariyya, may the blessings of Allah be upon them both. They welcomed me and prayed for good for me..." and the hadith continues.
أن رسول الله ﷺ قال: أتيت بالبراق… فذكر حديث الإسراء والمعراج وفيه: ثم عرج بنا إلى السماء الثانية فاستفتح جبريل فقيل من أنت؟ قال: جبريل قيل: ومن معك؟ قال محمد ﷺ قيل: وقد بعث إليه؟ قال: قد بعث إليه ففتح لنا فإذا أنا بابني الخالة: عيسى بن مريم ويحيى بن زكريا صلوات الله عليهما، فرحبا، ودعوا أي بخير… الحديث.