Maimonides said this quote

The person who wishes to attain human perfection should study logic first, next mathematics, then physics, and, lastly, metaphysics.