The Messenger of Allah ﷺ said, "When the end of time draws near, the dreams of a believer will hardly ever be false. The most truthful of them in dreams will be the most truthful of them in speech. The dream of a believer is one of forty-six parts of prophethood."
حدثنا أحمد بن عمرو بن السرح المصري حدثنا بشر بن بكر حدثنا الأوزاعي عن ابن سيرين
قال رسول الله ﷺ إذا قرب الزمان لم تكد رؤيا المؤمن تكذب وأصدقهم رؤيا أصدقهم حديثا ورؤيا المؤمن جزء من ستة وأربعين جزءا من النبوة
[Its chain of transmission is daif] It was related by Bukhari, Bukhari: 7017, and Muslim, Hadith: 6/2263, from the hadith of Muhammad bin Sirin, through him, at length. See Hadith: 3906, and this is a portion of it.