Descartes, Second Replies (CSM II, 104):
Now some of these perceptions [of the intellect] are so transparently clear and at the same time so simple that we cannot ever think of them without believing them to be true. The fact that I exist so long as I am thinking, or that what is done cannot be undone, are examples of truths in respect of which we manifestly possess this kind of certainty. For we cannot doubt them unless we think of them; but we cannot think of them without at the same time believing they are true, as was supposed. Hence we cannot doubt them without at the same time believing they are true; that is, we can never doubt them.