Immanuel Kant said this quote

The main point of enlightenment is man's release from his self-caused immaturity, primarily in matters of religion.