Meditations on First Philosophy (subtitled In which the existence of God and the immortality of the soul are demonstrated) is a philosophical treatise by René Descartes first published in 1641 (in Latin).
The book is made up of six meditations, in which Descartes first discards all belief in things that are not absolutely certain, and then tries to establish what can be known for sure. He wrote the meditations as if he had meditated for six days: each meditation refers to the last one as “yesterday” (In fact, Descartes began work on the Meditations in 1639.) One of the most influential philosophical texts ever written, it is widely read to this day. (Wikipedia)
Let us suppose, then, that we are dreaming, and that all these particulars — namely, the opening of the eyes, the motion of the head, the forth-putting of the hands — are merely illusions; and even that we really possess neither an entire body nor hands such as we see. Nevertheless it must be admitted at least that the objects which appear to us in sleep are, as it were, painted representations which could not have been formed unless in the likeness of realities; and, therefore, that those general objects, at all events, namely, eyes, head, hands, and an entire body, are not simply imaginary, but really existent. For, in truth, painters themselves, even when they study to represent sirens and satyrs by forms the most fantastic and extraordinary, cannot bestow upon them natures absolutely new, but can only make a certain medley of the members of different animals; or if they chance to imagine something so novel that nothing at all similar has ever been seen before, and such as is, therefore, purely fictitious and absolutely false, it is at least certain that the colors of which this is composed are real. And on the same principle, although these general objects, viz. [a body], eyes, a head, hands, and the like, be imaginary, we are nevertheless absolutely necessitated to admit the reality at least of some other objects still more simple and universal than these, of which, just as of certain real colors, all those images of things, whether true and real, or false and fantastic, that are found in our consciousness (cogitatio), are formed.