Sahih al-Bukhari 1421: Sincerity of Intention and Purity of Purpose
It is narrated from Hazrat Abu Hurairah (ra) that the Messenger of Allah (saw) said: “Once a man said: ‘Today I shall give some charity (Sadaqah).’ He went out with his charity and, taking a thief to be a poor man, placed it in his hand. When morning came, people began to talk: ‘Now charity is even being given to a thief.’ When the man came to know of it, he said: ‘O my Allah, You alone are worthy of all praise. I shall certainly give charity.’ He went out with the charity and gave it to an immoral woman. When morning came, people began to talk: ‘Last night charity was given to an immoral woman.’ When this reached the man, he said: ‘O Allah! You alone are worthy of all praise. I erred in giving charity to an adulteress. I shall certainly give charity.’ He went out with the charity and gave it to a wealthy man. When morning came, people began to say: ‘Now charity is even being given to the rich.’ At this he said: ‘O my Allah! You alone are worthy of all praise. Once I gave charity to a thief, once to an immoral woman and once to a wealthy man.’ He was lost in this thought when a voice came to him: ‘As for the charity you gave to a thief, it may be that, seeing his need fulfilled, he refrains from stealing. Likewise, as for what you spent on the immoral woman, it may be that on receiving this money she gives up her immorality. As for the wealthy man, the result of giving him charity may be that he takes a lesson and thinks: Others spend in the way of God the Exalted, while I am deprived of this blessing. In this way, becoming remorseful, he may be granted the ability to spend in the way of Allah the Exalted the wealth that Allah the Exalted has given him.’”
AI-translated by Islam-Today