It was narrated from Anas bin Malik that the Messenger of Allah (ﷺ) said:
“A good dream from a righteous man is one of the forty-six parts of prophecy.”