A waking man, being under the necessity of having some ideas constantly in his mind, is not at liberty to think or not to think
 John Locke, An Essay Concerning Human Understanding (1689). copy citation

Context

“As it is in the motions of the body, so it is in the thoughts of our minds: where any one is such, that we have power to take it up, or lay it by, according to the preference of the mind, there we are at liberty. A waking man, being under the necessity of having some ideas constantly in his mind, is not at liberty to think or not to think; no more than he is at liberty, whether his body shall touch any other or no, but whether he will remove his contemplation from one idea to another is many times in his choice; and then he is, in respect of his ideas, as much at liberty as he is in respect of bodies he rests on;” source