Abu Masud Uqba bin Amr reported,

When the verse on charity was revealed, we used to hire ourselves out carrying loads. A man came and gave a large amount in charity, and people said, "He is only showing off!" Then another man came and gave a single measure of dates, and they said, "Allah has no need of this man's measure!" So this verse was revealed, "Those who criticize the believers who give charity willingly, and those who have nothing to give but their own effort" [Tawbah 9:79].

Azami 4086

Sahih

عن أبي مسعود، قال

لما نزلت آية الصدقة كنا نحامل، فجاء رجل فتصدق بشيء كثير فقالوا: مرائي! وجاء رجل فتصدق بصاع فقالوا: إن الله لغني عن صاع هذا! فنزلت: {الذين يلمزون المطوعين من المؤمنين في الصدقات والذين لا يجدون إلا جهدهم} الآية.

الأعظمي 4086صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Zakat
Chapter
Encouragement to pay zakat and charity and the ways of spending them
Section
What Allah revealed concerning those who criticize the charitable for showing off and seeking reputation
Numbering
Jami al-Kamil 4086 (2nd edition)
Azami 4086