In Middle Eastern and Islamic lore, the jinn are associated with dreams. As subtle, invisible creatures they were treated as a separate race of beings and as a type of spirit-life.
A thread on jinn and dreams-
Jinn were said to have a special capacity to psychically influence humans through whisperings. These could fill the mind of people with doubt, fear, and lust
They could also sway the dreams of humans.
Some jinn like Kabus were described as a type of winged shadow which stalks humans at nighttime.
Slipping in through cracks, he perches on your chest causing paralysis as his icy fingers seep into the mind inducing nightmares and terror.
Meanwhile Qarinah, a jinn queen, uses her sexuality to influence dreams.
Appearing before the unsuspecting she penetrates the mind with lust, causing wet dreams, and draining her victims of their vitality.
Qarinah as a type of succubus, draws heavily from older Jewish lore on Lilith.
Qarinah is also linked to the legends of King Solomon.