Anas bin Malik reported,

He narrated to us about the night the Prophet ﷺ was taken on the night journey from the Mosque of the Kaabah. Three persons came to him before revelation had begun to descend upon him, while he was sleeping in the Sacred Mosque.The first of them said, "Which one of them is he?"The middle one said, "He is the best of them."The last one said, "Take the best of them."That was all that happened that night, and he did not see them again until they came on another night, as his heart perceived. The Prophet's ﷺ eyes would sleep but his heart would not sleep. Such are the prophets, their eyes sleep but their hearts do not sleep. Then Jibreel took charge of him and ascended with him to the heavens.

Bukhari 3570

Sahih

حدثنا إسماعيل قال حدثني أخي عن سليمان عن شريك بن عبد الله بن أبي نمر سمعت

أنس بن مالك

يحدثنا عن ليلة أسري بالنبي ﷺ من مسجد الكعبة جاءه ثلاثة نفر قبل أن يوحى إليه وهو نائم في مسجد الحرام فقال أولهم أيهم هو فقال أوسطهم هو خيرهم وقال آخرهم خذوا خيرهم فكانت تلك فلم يرهم حتى جاءوا ليلة أخرى فيما يرى قلبه والنبي ﷺ نائمة عيناه ولا ينام قلبه وكذلك الأنبياء تنام أعينهم ولا تنام قلوبهم فتولاه جبريل ثم عرج به إلى السماء

البخاري 3570صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtues
Chapter
Prophet ﷺ would have his eyes sleep but not his heart
Numbering
Darussalam 3570
Bukhari 3570