Jabir bin Abdullah reported,

Angels came to the Prophet ﷺ while he was sleeping. Some of them said, "He is asleep."Others said, "The eye sleeps, but the heart is awake."They said, "This companion of yours has a parable, so set forth a parable for him."Some of them said, "He is asleep."Others said, "The eye sleeps, but the heart is awake."So they said, "His likeness is that of a man who built a house, prepared a banquet within it, and sent out an inviter. Whoever responded to the inviter entered the house and ate from the banquet, and whoever did not respond to the inviter did not enter the house and did not eat from the banquet."They said, "Interpret it for him so that he may understand it."Some of them said, "He is asleep."Others said, "The eye sleeps, but the heart is awake."So they said, "The house is Paradise, and the inviter is Muhammad ﷺ. Whoever obeys Muhammad ﷺ has obeyed Allah, and whoever disobeys Muhammad ﷺ has disobeyed Allah. Muhammad ﷺ is the one who distinguishes between people."

Azami 12530

Sahih

عن جابر بن عبد الله يقول

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

الأعظمي 12530صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "And Allah invites to the abode of peace and guides whom He wills to a straight path"
Numbering
Jami al-Kamil 12530 (2nd edition)
Azami 12530