Plato said this quote

Because a freeman ought not to be a slave in the acquisition of knowledge of any kind. Bodily exercise, when compulsory, does no harm to the body; but knowledge which is acquired under compulsion obtains no hold on the mind.