sleepiphany

Etymology
.

Noun

 * 1) An illuminating realization or discovery revealed in a dream or during sleep.