Critique of Judgement by Immanuel Kant Chapter 87 Page 11

Suppose then that partly through the weakness of all the speculative arguments so highly extolled, and partly through many irregularities in nature and the world of sense which come before him, a man is persuaded of the proposition, There is no God; he would nevertheless be contemptible in his own eyes if on that account he were to imagine the laws of duty as empty, invalid and inobligatory, and wished to resolve to transgress them boldly. Such an one, even if he could be convinced in the sequel of that which he had doubted at the first, would always be contemptible while having such a disposition, although he should fulfil his duty as regards its [external] effect as punctiliously as could be desired, for [he would be acting] from fear or from the aim at recompense, without the sentiment of reverence for duty.