Sunan Abu Dawud #5017
General Behavior (Kitab Al-Adab) 43:245
Narrated AbuHurayrah:
When the Messenger of Allah (ﷺ) finished the dawn prayer, he would ask: Did any of you have a dream last night? And he said: All that is left of Prophecy after me is a good vision.