Mishkat al-Masabih 144
عَن جَابر بن عبد الله يَقُول جَاءَتْ مَلَائِكَةٌ إِلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَهُوَ نَائِم فَقَالَ بَعْضُهُمْ إِنَّهُ نَائِمٌ وَقَالَ بَعْضُهُمْ إِنَّ الْعَيْنَ نَائِمَة وَالْقلب يقظان فَقَالُوا إِنَّ لِصَاحِبِكُمْ هَذَا مَثَلًا فَاضْرِبُوا لَهُ مثلا فَقَالَ بَعْضُهُمْ إِنَّهُ نَائِمٌ وَقَالَ بَعْضُهُمْ إِنَّ الْعَيْنَ نَائِمَةٌ وَالْقَلْبَ يَقْظَانُ فَقَالُوا مَثَلُهُ كَمَثَلِ رَجُلٍ بَنَى دَارًا وَجَعَلَ فِيهَا مَأْدُبَةً وَبَعَثَ دَاعِيًا فَمَنْ أَجَابَ الدَّاعِيَ دَخَلَ الدَّارَ وَأَكَلَ مِنَ الْمَأْدُبَةِ وَمَنْ لَمْ يُجِبِ الدَّاعِيَ لَمْ يَدْخُلِ الدَّارَ وَلَمْ يَأْكُلْ مِنَ الْمَأْدُبَةِ فَقَالُوا أَوِّلُوهَا لَهُ يفقهها فَقَالَ بَعْضُهُمْ إِنَّهُ نَائِمٌ وَقَالَ بَعْضُهُمْ إِنَّ الْعَيْنَ نَائِمَة وَالْقلب يقظان فَقَالُوا فالدار الْجنَّة والداعي مُحَمَّد صلى الله عَلَيْهِ وَسلم فَمن أطَاع مُحَمَّدًا صلى الله عَلَيْهِ وَسلم فقد أطَاع الله وَمن عصى مُحَمَّدًا صلى الله عَلَيْهِ وَسلم فقد عصى الله وَمُحَمّد صلى الله عَلَيْهِ وَسلم فرق بَين النَّاس. رَوَاهُ البُخَارِيّ
From Jabir ibn ʿAbdullah, who said: Angels came to the Prophet ﷺ while he was asleep. Some of them said: "He is asleep." Others said: "The eye is asleep but the heart is awake." They said: "There is a parable for this companion of yours, so set forth a parable for him." Some of them said: "He is asleep." Others said: "The eye is asleep but the heart is awake." They said: "His likeness is that of a man who built a house, set a banquet in it and sent out a caller. Whoever answered the caller entered the house and ate from the banquet, and whoever did not answer the caller did not enter the house and did not eat from the banquet." They said: "Interpret it for him so that he understands it." Some of them said: "He is asleep." Others said: "The eye is asleep but the heart is awake." They said: "The house is Paradise, and the caller is Muhammad ﷺ. Whoever obeys Muhammad ﷺ has obeyed Allah, and whoever disobeys Muhammad ﷺ has disobeyed Allah. And Muhammad ﷺ is the division between people." Reported by al-Bukhari.