It's
"Against stupidity, the Gods themselves contend in vain"

This is a quote from Friedrich Schiller

The first I've heard of it, and what prolly made it famous, was when I read this book by...