There are verses on dreams in Atharva veda which speak about swapna
in two-fold characteristics, namely, the state of sleep whose Lord
is Yama and what it (sleep) contains.
The second one is about dreams
which are in nature of retributive justice done to the dreamer by the
Lord of Rta – by praying whom one can get the evil dreams transferred
to the evil-doers (how?)