It was his subconscious which told him this - that infuriating part of a person's brain which never responds to interrogation, merely gives little meaningful nudges and then sits humming quietly to itself, saying nothing.
"The Long Dark Tea-Time of the Soul". Book by Douglas Adams, 1988.