And when he awoke he would say:
“Praise be to Allah who has given us life after causing us to die; to Him is the resurrection.”
Allah, exalted be He, says:
“Allah takes the souls at the time of their death and those that do not die during their sleep. He then withholds those for whom He has decreed death and releases the others for an appointed term. Indeed, in that are signs for a people who reflect.”
He, glorified is He, thus informs us that He seizes the souls both in sleep and at death. Among the souls He takes during sleep are those upon which death is decreed, and these He keeps; the others He releases. Because of this temporary separation from the body, the soul attains knowledge that Allah casts into it—sometimes through an angel who shows it visions and speaks to it in a dream, and sometimes by other means.
He, Most High, also says:
“It is not for any human being that Allah should speak to him except by revelation, or from behind a veil, or by sending a messenger who then conveys, by His permission, whatever He wills. Truly, He is Exalted, All-Wise.”
ʿUbādah ibn al-Ṣāmit said, “The believer’s dream is a conversation in which the Lord speaks to His servant while he sleeps.”
It is authentically reported that the Prophet—may Allah bless him and grant him peace—said, “Nothing of prophethood remains after me except glad tidings: the righteous dream that a virtuous man sees or that is shown to him.”
He also said, “The righteous dream is one part out of forty-six parts of prophethood.”
And in the two Sahihs, from ʿĀʾishah…