Friedrich Nietzsche said this quote

To recognize untruth as a condition of life--that certainly means resisting accustomed value feelings in a dangerous way, and a philosophy that risks this would by that token alone place itself beyond good and evil.