Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:3570Ismāʿīl > Akhī > Sulaymān > Sharīk b. ʿAbdullāh b. Abū Namir > Anas b. Mālik

I heard Anas bin Malik telling us about the night when the Prophet ﷺ was made to travel from the Kaʿba Mosque. Three persons (i.e. angels) came to the Prophet ﷺ before he was divinely inspired was an Aspostle), while he was sleeping in Al Masjid-ul-Haram. The first (of the three angels) said, "Which of them is he?" The second said, "He is the best of them." That was all that happened then, and he did not see them till they came at another night and he perceived their presence with his heart, for the eyes of the Prophet ﷺ were closed when he was asleep, but his heart was not asleep (not unconscious). This is characteristic of all the prophets: Their eyes sleep but their hearts do not sleep. Then Gabriel took charge of the Prophet ﷺ and ascended along with him to the Heaven.  

البخاري:٣٥٧٠حَدَّثَنَا إِسْمَاعِيلُ قَالَ حَدَّثَنِي أَخِي عَنْ سُلَيْمَانَ عَنْ شَرِيكِ بْنِ عَبْدِ اللَّهِ بْنِ أَبِي نَمِرٍ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ

يُحَدِّثُنَا عَنْ لَيْلَةِ أُسْرِيَ بِالنَّبِيِّ ﷺ مِنْ مَسْجِدِ الْكَعْبَةِ جَاءَ ثَلاَثَةُ نَفَرٍ قَبْلَ أَنْ يُوحَى إِلَيْهِ وَهُوَ نَائِمٌ فِي مَسْجِدِ الْحَرَامِ فَقَالَ أَوَّلُهُمْ أَيُّهُمْ هُوَ فَقَالَ أَوْسَطُهُمْ هُوَ خَيْرُهُمْ وَقَالَ آخِرُهُمْ خُذُوا خَيْرَهُمْ فَكَانَتْ تِلْكَ فَلَمْ يَرَهُمْ حَتَّى جَاءُوا لَيْلَةً أُخْرَى فِيمَا يَرَى قَلْبُهُ وَالنَّبِيُّ ﷺ نَائِمَةٌ عَيْنَاهُ وَلاَ يَنَامُ قَلْبُهُ وَكَذَلِكَ الأَنْبِيَاءُ تَنَامُ أَعْيُنُهُمْ وَلاَ تَنَامُ قُلُوبُهُمْ فَتَوَلاَّهُ جِبْرِيلُ ثُمَّ عَرَجَ بِهِ إِلَى السَّمَاءِ  


See similar narrations below:

Collected by Bayhaqī
bayhaqi:13387Muḥammad b. ʿAbdullāh al-Ḥāfiẓ > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-Rabīʿ b. Sulaymān al-Murādī > ʿAbdullāh b. Wahbb. Muslim al-Qurashī > Sulaymān b. Bilāl > Sharīk b. ʿAbdullāh b. Abū Namir > Anas b. Mālik

I heard Anas bin Malik telling us about the night when the Prophet ﷺ was made to travel from the Kaʿba Mosque. Three persons (i.e. angels) came to the Prophet ﷺ before he was divinely inspired was an Aspostle), while he was sleeping in Al Masjid-ul-Haram. The first (of the three angels) said, "Which of them is he?" The second said, "He is the best of them." That was all that happened then, and he did not see them till they came at another night and he perceived their presence with his heart, for the eyes of the Prophet ﷺ were closed when he was asleep, but his heart was not asleep (not unconscious). This is characteristic of all the prophets: Their eyes sleep but their hearts do not sleep. Then Gabriel took charge of the Prophet ﷺ and ascended along with him to the Heaven. (Using translation from Bukhārī 3570)   

البيهقي:١٣٣٨٧أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا الرَّبِيعُ بْنُ سُلَيْمَانَ الْمُرَادِيُّ ثنا عَبْدُ اللهِ بْنُ وَهْبِ بْنِ مُسْلِمٍ الْقُرَشِيُّ ثنا سُلَيْمَانُ بْنُ بِلَالٍ ثنا شَرِيكُ بْنُ عَبْدِ اللهِ بْنِ أَبِي نَمِرٍ قَالَ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ

يُحَدِّثُنَا عَنْ لَيْلَةِ أُسْرِيَ بِرَسُولِ اللهِ ﷺ مِنْ مَسْجِدِ الْكَعْبَةِ أَنَّهُ جَاءَهُ ثَلَاثَةُ نَفَرٍ قَبْلَ أَنْ يُوحَى إِلَيْهِ وَهُوَ نَائِمٌ فِي الْمَسْجِدِ الْحَرَامِ فَقَالَ أَوَّلُهُمْ هُوَ هُوَ وَقَالَ أَوْسَطُهُمْ هُوَ خَيْرُهُمْ وَقَالَ آخِرُهُمْ خُذُوا خَيْرَهُمْ فَكَانَتْ تِلْكَ فَلَمْ يَرَهُمْ حَتَّى جَاءُوهُ لَيْلَةً أُخْرَى فِيمَا يَرَى قَلْبُهُ وَالنَّبِيُّ ﷺ تَنَامُ عَيْنُهُ وَلَا يَنَامُ قَلْبُهُ وَكَذَلِكَ الْأَنْبِيَاءُ عَلَيْهِمُ الصَّلَاةُ وَالسَّلَامُ تَنَامُ أَعْيُنُهُمْ وَلَا تَنَامُ قُلُوبُهُمْ وَذَكَرَ الْحَدِيثَ بِطُولِهِ  

رَوَاهُ الْبُخَارِيُّ عَنْ عَبْدِ الْعَزِيزِ عَنْ سُلَيْمَانَ وَرَوَاهُ مُسْلِمٌ عَنْ هَارُونَ عَنِ ابْنِ وَهْبٍ