Sri Krishna says in the Gita that there are three kinds of giving when He defines the different types of sacrifices, austerities, and gifts. He details this in Chapter 17 verses 7-28. All the verses should be read. A few of the verses are as follows:
verse 7. Even the food that is dear to all is of three kinds. Likewise are the sacrifices, austerities, and gifts. Hear now of the distinction between them.
verse 20. That gift which is made to one who can make no return, and with the feeling that it is one's duty to give, and which is given at the right place and time to a worthy person--such a gift is held to be of the nature of sattva.
verse 21. But that which is given for the sake of recompense or with the expectation of fruit or in a grudging mood is accounted as of the nature of rajas.
verse 22. And the gift which is made without respect or with disdain, at an improper place and time, and to an unworthy person is declared to be of the nature of tamas.
In verses 23-27 The Lord says why acts of sacrifice, austerity, and gifts are always begun by saying "Om" and the meaning of "Om Tat Sat" when doing these actions.
verse 28. Whatever sacrifice or gift is made, whatever austerity is practiced, whatever ceremony is observed--it is all called "asat," "unreal," if it is done without faith. It is of no account here or hereafter.