Whenever the Messenger 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 sadaqa he did not eat out of that.
Reference: Sahih Muslim 1077 In-book : Book 12, Hadith 228 USC-MSA web (English) : Book 5, Hadith 2357 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.