Alain De Botton said this quote

Insomnia is his mind's revenge for all the tricky thoughts he has carefully avoided during the daylight hours.