Sahih Muslim · Hadith 2542
The Book of Zakat - كتاب الزكاة
حدثنا عبد الرحمن بن سلام الجمحي، حدثنا الربيع، - يعني ابن مسلم - عن محمد، - وهو ابن زياد - عن أبي هريرة، . أن النبي صلى الله عليه وسلم كان إذا أتي بطعام سأل عنه فإن قيل هدية أكل منها وإن قيل صدقة لم يأكل منها .
Abu Huraira reported: Whenever the Apostle of Allah (may peace be upon him) 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.
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).