When we were commanded to give charity, we used to hire ourselves out to earn something to contribute. Abu Aqeel came with half a saa, and another man came with more than that. The hypocrites said, "Allah has no need of this man's charity, and the other one only did what he did to show off." So the verse was revealed, "Those who criticize the believers who give charity voluntarily and ridicule those who find nothing to give except their meager efforts" [Tawbah 9:79].
حدثني بشر بن خالد أبو محمد أخبرنا محمد بن جعفر عن شعبة عن سليمان عن أبي وائل
لما أمرنا بالصدقة كنا نتحامل فجاء أبو عقيل بنصف صاع وجاء إنسان بأكثر منه فقال المنافقون إن الله لغني عن صدقة هذا وما فعل هذا الآخر إلا رئاء فنزلت {الذين يلمزون المطوعين من المؤمنين في الصدقات والذين لا يجدون إلا جهدهم} الآية