The Prophet ﷺ said, "When the end of time draws near, the dreams of a Muslim will hardly ever be false. The most truthful in dreams among them will be the most truthful in speech. A Muslim's dream is one of forty-six parts of prophethood."He continued, "Dreams are of three kinds. A good dream is glad tidings from Allah . A distressing dream is from Satan. And there is a dream that comes from what a person occupies his mind with. So if any of you sees something he dislikes, let him not tell anyone about it, and let him get up and pray."He added, "I like to see fetters in a dream, but I dislike the iron collar. Fetters signify steadfastness in religion."
حدثنا يزيد أخبرنا هشام عن محمد
عن النبي ﷺ قال إذا اقترب الزمان لم تكد رؤيا المسلم تكذب وأصدقهم رؤيا أصدقهم حديثا ورؤيا المسلم جزء من ستة وأربعين جزءا من النبوة قال وقال الرؤيا ثلاثة فالرؤيا الصالحة بشرى من الله عز وجل والرؤيا تحزينا من الشيطان والرؤيا من الشيء يحدث به الإنسان نفسه فإذا رأى أحدكم ما يكره فلا يحدثه أحدا وليقم فليصل قال وأحب القيد في النوم وأكره الغل القيد ثبات في الدين
[Shakir: 10538] Its isnad is sahih. Bukhari related it in 9/48, Book of Interpretation of Dreams, chapter on shackles in a dream, and Muslim in 4/1773, number 2263, in the Book of Dreams, and Abu Dawud in 4/304, number 5019, and Tirmidhi in 4/532, number 2270, where he said, hasan sahih.[Shakir: 10539] Its isnad is sahih, with its wording, and the leading scholars related it in the same places mentioned above. These hadiths are the governing principle for dreams and visions, and nothing deviates from them. As for what the philosophers of the West say, it is nothing but shortsighted ignorance, though in the end they came to realize they were mistaken.