Abu Hurairah (RA) reported: Whenever the Apostle of Allah (ﷺ) was presented with food, he asked about it. If he was told that it was a gift, he ate out of that, and if he was told that it was a sadaqah he did not eat out of that.
Hadith ReferenceSahih Muslim / The Book of Zakat / Hadith: 1077