It was the practice of the Prophet (peace and blessings be upon him):
"He (peace and blessings be upon him) would accept a gift and eat from it, but he would not eat from charity (sadaqah)."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 4881
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[حم طب] عن سلمان [ابن سعد] عن عائشة وعن أبي هريرة. حم ٥/٤٤٢، حم ٢/٣٠٢، ٣٠٥، ٣٣٨، خ: هبة، م: زكاة - أبي هريرة.