bedvelation
n. A combination of the words bed and revelation. When one realizes and or remembers, while lying in bed (usually when one cannot sleep), something he or she should have done, but instead of fully waking up, the person quickly forgets and falls asleep.
At 3am, Jason had a bedvelation, realizing he had a unit test the following day. However, Jason valued his sleep more than grades and somehow managed to fall asleep.