1597, Francis Bacon, Essays, London: John Jaggard, 1613, “Of Studies,” So if a mans wit be wandering, let him study Mathematicks; if his wit be not apt to distinguish, or finde difference, let him study the Schoole-men; if it be not apt to beat over matters, and to find out resemblances, let him study Lawyers cases. So every defect of the mind may have speciall receit.
Source: wiktionary