Francis Bacon said this quote

If a man's wit be wandering, let him study the mathematics.