[Machine] The Prophet ﷺ used to ask if something brought to him was a gift or charity. If they said it was a gift, he would extend his hand to receive it. And if they said it was charity, he would say to his companions, "Take it and give it as charity." This hadith has a similar meaning to the one narrated by Muhammad ibn Ziyad from Abu Hurairah.
كَانَ النَّبِيُّ ﷺ إِذَا أُتِيَ بِالشَّيْءِ سَأَلَ عَنْهُ أَهَدِيَّةٌ أَمْ صَدَقَةٌ فَإِنْ قَالُوا هَدِيَّةٌ مَدَّ يَدَهُ وَإِنْ قَالُوا صَدَقَةٌ قَالَ لِأَصْحَابِهِ خُذُوا وَرُوِّينَا عَنْ مُحَمَّدِ بْنِ زِيَادٍ عَنْ أَبِي هُرَيْرَةَ ؓ بِمَعْنَاهُ