Extracts from Arcana Cœlestia ~ Emanuel Swedenborg
There are two affections, namely, the affection of good, and the affection of truth. The affection of good is to do what is good from the love of good, and the affection of truth is to do what is good from the love of truth. At the first view these two affections appear to be the same; but in reality they are distinct from each other both as to essence and as to origin. The affection of good, or doing what is good from the love of good, is properly of the will; but the affection of truth, or doing what is good from the love of truth, is properly of the understanding. Thus these two affections are distinct from each other in the same way as are the will and the understanding. The affection of good is from celestial love, but the affection of truth is from spiritual love.
***
Within the affection of truth of those who are in this affection, there is the affection of good, but so obscurely that they do not perceive, thus do not know, what the affection of good is, and what genuine charity is. They do suppose that they know, but it is from truth, thus from memory-knowledge, and not from good itself. Nevertheless they do the goods of charity, not in order to merit anything thereby, but from obedience; and this insofar as they apprehend that it is the truth.
For they suffer themselves to be led by the Lord out of their obscurity of good by means of the truth which appears to them to be truth.
For example: being ignorant what the neighbor is, they do good to everyone whom they suppose to be the neighbor; especially to the poor, because these call themselves poor on account of being destitute of worldly wealth; to orphans and widows, because they are so termed; to strangers, because they are such; and so on with all the rest and this they do -
so long as they are ignorant what is signified by the poor, by orphans, widows, strangers, and others.
Nevertheless seeing that in their affection of apparent truth there lies in obscurity the affection of good, by which the Lord leads them to such action, they are at the same time in good as to their interiors, and in this good the angels are present with them, and are delighted there with their appearances of truth by which such persons are affected.
But they who are in the good of charity,
and from this in the affection of truth, do all things with discrimination, for they are in light; since the light of truth is from no other source than good, because the Lord flows in by means of good.
These persons do not do good to the poor, to orphans, to widows, and to strangers, for the mere reason that they are so termed;
for they know that those who are good, whether poor or rich, are neighbors more than all others;
since by the good, good is done to others; and therefore insofar as these persons do good to the good, they do it to others through them. They also know how to make distinctions among goods, and so among good men.
They call the general good itself their neighbor in a greater degree, for in this there is regarded the good of still greater numbers. As still more their neighbor to whom charity is to be done they acknowledge the Lord's kingdom on earth, which is the church; and the Lord's kingdom itself in the heavens even still more. But they who set the Lord before all these - who adore Him alone and love Him above all things - derive the neighbor in all these degrees
from Him; for the Lord alone is the neighbor in the highest sense, thus all good is the neighbor insofar as it is from Him.
But they who are in the opposite derive the degrees of the neighbor
from themselves, and acknowledge only those as neighbor who favor and serve them - calling no others brethren and friends - and this with a distinction, accordingly as they make one with them.
All this shows what the neighbor is, namely, that a man is our neighbor according to the love in which he is; and that he is truly the neighbor who is in love to the Lord and in charity toward his neighbor, and this with every possible difference; thus it is the good itself with everyone that determines the point in question.
(Arcana Cœlestia 1997; 2425)