Bara bin Azib reported,

Regarding the saying of Allah, the Glorified, "and from what We have brought forth for you from the earth. And do not aim toward the defective of it, spending from that" [Baqarah 2:267], he said this was revealed concerning the Ansar.When the date harvest came, the Ansar would bring out clusters of unripe dates from their orchards and hang them on a rope stretched between two pillars in the mosque of the Messenger of Allah ﷺ, so that the poor among the Muhajirun could eat from them. But one of them would deliberately include a cluster containing dried, spoiled dates, thinking it would pass unnoticed among the many clusters being placed there.So concerning those who did this, the verse was revealed, "And do not aim toward the defective of it, spending from that." He is saying, do not deliberately give the spoiled dates as your offering. "While you would not take it yourselves except with closed eyes" [Baqarah 2:267]. He is saying, if such were given to you as a gift, you would not accept it except with embarrassment for the giver, resentful that he sent you something you had no need for. So know that Allah has no need of your charity.

Ibn Majah 1822

Hasan

حدثنا أحمد بن محمد بن يحيى بن سعيد القطان حدثنا عمرو بن محمد العنقزي حدثنا أسباط بن نصر عن السدي عن عدي بن ثابت

عن البراء بن عازب

في قوله سبحانه {ومما أخرجنا لكم من الأرض ولا تيمموا الخبيث منه تنفقون} قال نزلت في الأنصار كانت الأنصار تخرج إذا كان جداد النخل من حيطانها أقناء البسر فيعلقونه على حبل بين أسطوانتين في مسجد رسول الله ﷺ فيأكل منه فقراء المهاجرين فيعمد أحدهم فيدخل قنوا فيه الحشف يظن أنه جائز في كثرة ما يوضع من الأقناء فنزل فيمن فعل ذلك {ولا تيمموا الخبيث منه تنفقون} يقول لا تعمدوا للحشف منه تنفقون {ولستم بآخذيه إلا أن تغمضوا فيه} يقول لو أهدي لكم ما قبلتموه إلا على استحياء من صاحبه غيظا أنه بعث إليكم ما لم يكن لكم فيه حاجة واعلموا أن الله غني عن صدقاتكم

ابن ماجه 1822حسن
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Zakat
Chapter
Prohibition on giving the worst of one's wealth in charity
Numbering
Darussalam 1822
Ibn Majah 1822