Abu Hurairah narrated that the Messenger of Allah said:
"A man said" 'I am going to give some charity.' So he went out with his charity and put it in the hand of a thief. The next morning they started talking about how charity had been given to a thief. Then he said: 'O Allah, to You be praise for the thief. I am going to give some charity.' So he went out with his charity and put it in the hand of a prostitute. The next morning they started talking about how charity had been given to a prostitute. He said: 'O Allah, to You be praise for the prostitute. I am going to give some charity. So he went out with his charity and put it in the hand of a rich man. The next morning they started talking about how charity had been given to a rich man. He said: 'O Allah, th You be praise for the prostitute, the thief and the rich man. 'Then the message came to him: As for your charity, it is accepted. As for the prostitute, perhaps it will keep her from committing Zina. As for the thief, perhaps it will stop him from stealing. And as for the rich man, perhaps he will learn a lesson, and will spend from that which Allah, the Mighty and Sublime, has given him."'
Reported by An-Nasa’i (No. 2523), Al-Bukhari (No. 1421), Muslim (No. 1022) and Ahmad (No. 7933).
Abu Hurayrah (may Allah be pleased with him) reported: The Messenger of Allah (may Allah's peace and blessings be upon him) said: "A man said: 'Indeed, I will give in charity.' So he took his charity out and placed it in a thief's hand. Next morning, people were saying: 'Charity was given to a…
" قال رجل لأتصدقن بصدقة، فخرج بصدقته، فوضعها في يد سارق، فأصبحوا يتحدثون: تصدق على سارق! فقال: اللهم لك الحمد لأتصدقن بصدقة، فخرج بصدقته، فوضعها في يد زانية؟! فأصبحوا يتحدثون: تصدق على زانية فقال: اللهم…
Narrated by Abu Hurayrah
AuthenticMuttafaq ‘alayh (Bukhari and Muslim)Mishkat al-Masabih 1876