Abu Hurairah reported,

Whenever food was brought to the Messenger of Allah ﷺ, he would ask about it, "Is it a gift or charity?"If it was said to be charity, he would tell his companions, "Eat," but he himself would not eat. If it was said to be a gift, he ﷺ would extend his hand and eat with them.

Azami 4270

Sahih

عن أبي هريرة، قال

كان رسول الله ﷺ إذا أتي بطعام سأل عنه أهدية أم صدقة فإن قيل صدقة قال لأصحابه: كلوا. ولم يأكل وإن قيل هدية ضرب بيده ﷺ فأكل معهم.

الأعظمي 4270صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Zakat
Chapter
Zakat is not permissible for the Prophet ﷺ
Section
Acceptance of gifts by the Prophet ﷺ and refusal of charity
Numbering
Jami al-Kamil 4270 (2nd edition)
Azami 4270