Against stupidity the gods themselves contend in vain
or in the original German: “Mit der Dummheit kämpfen Götter selbst vergebens.”
It’s from the The Maid of Orleans by Friedrich Schiller. I found this quote originally in the science fiction book The Gods Themselves by Isaac Asimov. I’m a great fan of his books, and this is my favourite; and also it seems his favourite too.