W. Somerset Maugham said this quote

The illusion of free will is so strong in my mind that I can't get away from it, but I believe it is only an illusion. But it is an illusion which is one of the strongest motives of my actions. Before I do anything I feel that I have a choice, and that influences what I do; but afterwards, when the thing is done, I believe it was inevitable from all eternity.''What do you deduce from that?''Why merely the futility of regret. It's no good crying over spilt milk, because all the forces of the universe were bent on spilling it.