Gautama Buddha warned that supernatural beliefs, including the idea of gods, are an obstacle to achieving nirvana. Within a few generations of his death, he was venerated as a god. Of course.