The Kingdom of God is Within You by Leo Tolstoy Chapter 12 Page 177

not be free as regards the performance of his actions, he is free as regards the foundation on which they are performed. Just as the mechanician who is not free to modify the movement of his locomotive when it is in motion, is free to regulate the machine beforehand so as to determine what the movement is to be.

Whatever the conscious man does, he acts just as he does, and not otherwise, only because he recognizes that to act as he is acting is in accord with the truth, or because he has recognized it at some previous time, and is now only through inertia, through habit, acting in accordance with his previous recognition of truth.

In any case, the cause of his action is not to be found in any given previous fact, but in the consciousness of a given relation to truth, and the consequent