Pope Pius XI
Quadragesimo Anno §43
Quadragesimo Anno: On Reconstruction of the Social Order
43 But it is only the moral law which, just as it commands us to seek our supreme and last end in the whole scheme of our activity, so likewise commands us to seek directly in each kind of activity those purposes which we know that nature, or rather God the Author of nature, established for that kind of action, and in orderly relationship to subordinate such immediate purposes to our supreme and last end. If we faithfully observe this law, then it will follow that the particular purposes, both individual and social, that are sought in the economic field will fall in their proper place in the universal order of purposes, and We, in ascending through them, as it were by steps, shall attain the final end of all things, that is God, to Himself and to us, the supreme and inexhaustible Good.
Source: Quadragesimo Anno (Vatican.va)