«قَالَ رَجُلٌ: لَأَتَصَدَّقَنَّ اللَّيْلَةَ بِصَدَقَةٍ، فَخَرجَ بِصَدَقَتِهِ فَوَضَعَهَا فِي يَدِ زَانِيَةٍ، فَأَصْبَحَ النَّاسُ يَتَحَدَّثُونَ: تُصُدِّقَ عَلَى زَانِيَةٍ، فَقَالَ: اللَّهُمَ لَكَ الْحَمْدُ عَلَى زَانِيَةٍ، لَأَتَصَدَّقَنَّ اللَّيْلَةَ بِصَدَقَةٍ، فَخَرَجَ بِصَدَقَتِهِ فَوَضَعَهَا فِي يَدِ غَنِيَ، فَأَصْبَحُوا يَتَحَدَّثُونَ: تُصُدِّقَ اللَّيْلَةَ عَلَى غَنِيَ، قَالَ: اللَّهُمَّ لَكَ الْحَمْدُ عَلَى غَنِيَ، لَأَتَصَدَّقَنَّ اللَّيْلَةَ بِصَدَقَةٍ، فَخَرَجَ بِصَدَقَتِهِ فَوَضَعَهَا فِي يَدِ سَارِقٍ، فَأَصْبَحُوا يَتَحَدَّثُونَ: تُصُدِّقَ اللَّيْلَةَ عَلَى سَارِقٍ، فَقَالَ:اللَّهُمَّ لَكَ الْحَمْدُ عَلَى زَانِيَةٍ، وَعَلَى غَنِيَ، وَعَلَى سَارِقٍ. فَأُتِيَ فَقِيلَ لَهُ: أَمَّا صَدَقَتُكَ فَقَدْ قُبِلَتْ، وَأَمَّا الزَّانِيَةُ فَلَعَلَّهَا أَنْ تَسْتَعِفَّ بِهَا عَنْ زِنَاهَا، وَلَعَلَّ الْغَنِيَّ يَعْتَبِرُ فَيُنْفِقُ مِمَّا أَعْطَاهُ اللهُ، وَلَعَلَّ السَّارِقَ أَنْ يَسْتَعِفَّ بِهَا عَنْ سَرِقَتِه»
(A man said, â€Tonight, I shall give charity.'' He went out with his charity and (unknowingly) gave it to an adulteress. The next morning the people said that alms were given to an adulteress. The man said, â€O Allah! All the praises are for You. (I gave my alms) to an adulteress. Tonight, I shall give alms again.'' He went out with his charity and (unknowingly) gave it to a rich person. The next morning (the people) said, â€Last night, a wealthy person was given alms.'' He said, â€O Allah! All the praises are for You. (I gave alms) to a wealthy man. Tonight, I shall again give charity.'' So he went out with his charity and (unknowingly) gave it to a thief. The next morning (the people) said, â€Last night, a thief was given alms.'' He said, â€O Allah! All the praises are for You. (I have given alms) to an adulteress, a wealthy man and a thief.'' Then, someone came to him and said, â€The alms that you gave away were accepted. As for the adulteress, the alms might make her abstain from adultery. As for the wealthy man, it might make him take a lesson and spend his wealth that Allah has given him. As for the thief, it might make him abstain from stealing.'')  Allah said,