Pope Pius XI
Quadragesimo Anno §57
Quadragesimo Anno: On Reconstruction of the Social Order
57 But not every distribution among human beings of property and wealth is of a character to attain either completely or to a satisfactory degree of perfection the end which God intends. Therefore, the riches that economic-social developments constantly increase ought to be so distributed among individual persons and classes that the common advantage of all, which Leo XIII had praised, will be safeguarded; in other words, that the common good of all society will be kept inviolate. By this law of social justice, one class is forbidden to exclude the other from sharing in the benefits. Hence the class of the wealthy violates this law no less, when, as if free from care on account of its wealth, it thinks it the right order of things for it to get everything and the worker nothing, than does the non-owning working class when, angered deeply at outraged justice and too ready to assert wrongly the one right it is conscious of, it demands for itself everything as if produced by its own hands, and attacks and seeks to abolish, therefore, all property and returns or incomes, of whatever kind they are or whatever the function they perform in human society, that have not been obtained by labor, and for no other reason save that they are of such a nature. And in this connection We must not pass over the unwarranted and unmerited appeal made by some to the Apostle when he said: "If any man will not work neither let him eat." For the Apostle is passing judgment on those who are unwilling to work, although they can and ought to, and he admonishes us that we ought diligently to use our time and energies of body, and mind and not be a burden to others when we can provide for ourselves. But the Apostle in no wise teaches that labor is the sole title to a living or an income.
Source: Quadragesimo Anno (Vatican.va)