Carl Sagan said this quote

There is some evidence that dreaming is necessary. When people or other mammals are deprived of REM sleep (by awakening them as soon as the characteristic REM and EEG dream patterns emerge), the number of initiations of the dream state per night goes up, and, in severe cases, daytime hallucinations-that is, waking dreams-occur.