[1 of 2] Swedenborg (1688-1772, Sweden): primary subject "Evil, blamable if intentional" (search under Inner Life/Evil, Negative Emotion, Vice)": source "Divine Providence": detail "Section 80"
Nothing that a person only thinks, not even what he thinks to will, is appropriated to him unless he also wills it so that he does it when opportunity offers. For when a man then does it, he does it from the will by the understanding or from affection of the will by thought of the understanding. If it is something thought only, it cannot be appropriated, for the understanding does not conjoin itself to the will, or the thought of the understanding to the affection of the will, but the latter with the former.

[2 of 2] Swedenborg (1688-1772, Sweden): primary subject "Self-knowledge and self-examination" (search under Inner Life/Practices)": source "Arcana Coelestia, vol.5": detail "Section 3796"
It is the part of a wise man to know the ends [purposes] that are in him. Sometimes it appears as if his ends were for self when yet they are not so; for it is the nature of man to reflect upon himself in everything, and this from custom and habit. But if anyone desires to know the ends that are within him, let him merely pay attention to the delight he perceives in himself from the praise and glory of self, and to the delight he perceives from use separate from self; if he perceives this latter delight, he is in genuine affection. He must also pay attention to the various states in which he is, for the states themselves very much vary the perception. A man can explore these things in himself, but not in others; for the ends of each man's affection are known to the Lord alone. This is the reason why the Lord said :— "Judge not, that ye be not judged; condemn not, that ye be not condemned" [Luke vi. 37].