Yahya related to me from Malik from Ishaq ibn Abdullah ibn Abi Talha from Zufar ibn Sasaca from his father from Abu Hurayra that when the Messenger of Allah ﷺ left the morning prayer, he would say, "Has any of you had a dream last night? All that will remain of prophecy after me will be the true dream ."
أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ إِذَا انْصَرَفَ مِنْ صَلاَةِ الْغَدَاةِ يَقُولُ هَلْ رَأَى أَحَدٌ مِنْكُمُ اللَّيْلَةَ رُؤْيَا وَيَقُولُ لَيْسَ يَبْقَى بَعْدِي مِنَ النُّبُوَّةِ إِلاَّ الرُّؤْيَا الصَّالِحَةُ