‘The righteous dream is from Allah and the bad dream is from the devil, so if anyone sees something which pleases him then he should only relate it to one whom he loves…’
Summary of what to do upon having a bad dream:
Spit on your left three times
Spit: A form of spitting comprising mainly of air with little spittle
Seek refuge in Allah from shaytan and the evil of what you saw
Do not relate it to anyone
Turn and sleep on the opposite side to which you were sleeping on previously.
Get up and pray if you so desire.