It is narrated from Sayyiduna Mu'awiyah bin Haydah (may Allah be pleased with him) that when charity (sadaqah) was brought to the Messenger of Allah (peace and blessings be upon him), he (peace and blessings be upon him) would not eat from it, and when a gift was brought, he (peace and blessings be upon him) would eat from it.
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 17057