Sunan at-Tirmithiy كتاب الرؤيا باب ذهبت النبوة وبقيت المبشرات
The Messenger of God, peace and blessings of God be upon him, said, "The message and prophethood have ceased; there will be neither a messenger nor a prophet after me." So people felt distress. He, peace and blessings of God be upon him, added, "But [there will be] portents." They asked, "What are these portents, Messenger of God?" He replied, "The visions (1) of a Muslim, they are a part of the [many] parts of prophethood." Footnotes: (1) This vision, seen in dreams, is a form of prophecy. Click on ḥadīth to read more