Abu Hurairah reported,

The Messenger of Allah ﷺ said, "A man once said, 'Tonight I shall give a charity.' So he took out his charity and placed it in the hand of an adulteress. The next morning the people were talking, saying, 'Charity was given last night to an adulteress.'He said, 'Tonight I shall give a charity.' So he took out his charity and placed it in the hand of a thief. The next morning the people were talking, saying, 'Charity was given last night to a thief.'He said, 'Tonight I shall give a charity.' So he took out his charity and placed it in the hand of a rich man. The next morning the people were talking, saying, 'Charity was given last night to a rich man.'He said, 'All praise is due to Allah, even for charity given to a thief, an adulteress, and a rich man.'Then he was visited and told, 'As for your charity, it has been accepted. As for the adulteress, perhaps she will refrain from her sin because of it. As for the thief, perhaps he will refrain from his theft because of it. And as for the rich man, perhaps he will take heed and spend from what Allah has given him.'"

Ahmad 8282

Sahih

حدثنا علي بن حفص أخبرنا ورقاء عن أبي الزناد عن الأعرج

عن أبي هريرة قال

قال رسول الله ﷺ قال رجل لأتصدقن الليلة صدقة فأخرج صدقته فوضعها في يد زانية فأصبحوا يتحدثون تصدق الليلة على زانية وقال لأتصدقن الليلة بصدقة فأخرج صدقته فوضعها في يد سارق فأصبحوا يتحدثون تصدق الليلة على سارق ثم قال لأتصدقن الليلة بصدقة فأخرج الصدقة فوضعها في يد غني فأصبحوا يتحدثون تصدق الليلة على غني فقال الحمد لله على سارق وعلى زانية وعلى غني قال فأتي فقيل له أما صدقتك فقد تقبلت أما الزانية فلعلها يعني أن تستعف به وأما السارق فلعله أن يستغني به وأما الغني فلعله أن يعتبر فينفق مما آتاه الله

أحمد 8282صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 8282
Ahmad 8282