One may, from pity, give to a person who is poor or afflicted or ill. But he should not make charities to such a person with the belief that he would drive any (spiritual) benefit from it or that he would acquire any religious merit by it.
न वै देयमनुक्रोशाद् दीनायाप्यपकारिणे। आप्ताचरित इत्येव धर्म इत्येव वा पुनः॥