If a person has a nightmare, they are advised by Sunnah not to share it with anyone, to seek refuge in Allah, and to spit dryly to their left three times.