It was the French philosopher Rene Descartes who said that. We can doubt many things, but the one thing we cannot doubt is that we exist.