Answered by Sayyidi Habib Umar bin Hafiz (may Allah protect him and benefit us by him)
If someone sees the Prophet ﷺ in a dream and he commands them to do something how should they respond?
If he commands someone to do something which is praiseworthy according to the Sacred Law and is in accordance with the Sunnah then they should obey that command.
If he commands someone to do something which is contrary to the Sunnah or the Sacred Law then this should be interpreted as a mistaken impression on the part of the person who had the dream.
If he commands someone to take someone as a spiritual guide, then if that person is upright in following the Sunnah and the Sacred Law then this is an indication of the truthfulness of the dream.
If he commands someone not to keep the company of someone then if that person is not upright and contravenes the Sacred Law or if the person having the dream’s faith and certainty are weakened by keeping his company then this is an indication of the truthfulness of the dream.
The opposite is true. Someone may understand that they have been told to take someone as a spiritual guide and if that person is not upright then this is an indication of the falseness of the dream.
Someone may understand that they have been told not to keep the company of someone and if that person is upright then this is also an indication of the falseness of the dream.
In general, dreams that contain good tidings or good signs should gladden us but not delude us. They should increase us in energy and aspiration.