Carl Sagan said this quote

There is another connection between infancy and dreams: both are followed by amnesia. When we emerge from either state, we have great difficulty remembering what we have experienced. In both cases, I would suggest, the left hemisphere of the neocortex, which is responsible for analyticrecollection, has been functioning ineffectively.