The Metaphysics of Morals by Immanuel Kant Chapter 1 Page 15

this, there are many minds so sympathetically constituted that, without any other motive of vanity or self-interest, they find a pleasure in spreading joy around them and can take delight in the satisfaction of others so far as it is their own work. But I maintain that in such a case an action of this kind, however proper, however amiable it may be, has nevertheless no true moral worth, but is on a level with other inclinations, e.g., the inclination to honour, which, if it is happily directed to that which is in fact of public utility and accordant with duty and consequently honourable, deserves praise and encouragement, but not esteem. For the maxim lacks the moral import, namely, that such actions be done from duty, not from inclination.

Put the case that the mind of that philanthropist were clouded by sorrow of his