I spent a night at the home of my aunt Maymun. The Prophet ﷺ got up during the night, and at some point in the night he rose, performed a light ablution from a hanging waterskin (Amr would describe it as light and sparing), and stood up to pray.I performed an ablution similar to his, then came and stood on his left side (Sufyan sometimes said, on his left). He moved me around and placed me on his right side. He prayed for as long as Allah willed, then lay down and slept until I could hear him breathing deeply. Then the caller came and announced the prayer, so he got up with him and went to pray, and he prayed without performing ablution again.We said to Amr, "Some people say that the Messenger of Allah's ﷺ eyes sleep but his heart does not sleep."Amr replied, "I heard Ubayd bin Umayr say, 'The dreams of prophets are revelation,' then he recited, "Indeed, I have seen in a dream that I am sacrificing you" [Saffat 37:102]."
بت عند خالتي ميمونة ليلة، فقام النبي ﷺ من الليل، فلما كان في بعض الليل قام النبي ﷺ، فتوضأ من شن معلق وضوءا خفيفا،- يخففه عمرو ويقلله-، وقام يصلي، فتوضأت نحوا مما توضأ، ثم جئت، فقمت عن يساره- وربما قال سفيان: عن شماله- فحولني، فجعلني عن يمينه، ثم صلى ما شاء الله، ثم اضطجع، فنام حتى نفخ، ثم أتاه المنادي، فآذنه بالصلاة، فقام معه إلى الصلاة، فصلى، ولم يتوضأ. قلنا لعمرو: إن ناسا يقولون: إن رسول الله ﷺ تنام عينه ولا ينام قلبه، قال عمرو: سمعت عبيد بن عمير يقول: رؤيا الأنبياء وحي، ثم قرأ: {إن أرى في المنام أن أذبحك}
Bukhari related it in the Book of Wudu (138), and Muslim in the Book of the Prayer of Travelers (763:186), both of them through the route of Sufyan bin Uyayna, from Amr bin Dinar, who said, "Kurayb, the freed slave of Ibn Abbas, informed me, from Ibn Abbas," and he mentioned it. The wording given is Bukhari's.And the words of the Almighty, "So when they had both submitted, and he laid him down on his forehead, We called out to him, 'O Ibrahim, you have fulfilled the vision.' Indeed, thus do We reward the doers of good. This was indeed a clear trial. And We ransomed him with a great sacrifice." [Saffat 37:103–107]