Shadaqah meskipun tidak disengaja tetap berpahala sedekah
Imam Bukhari : 1332حَدَّثَنَا أَبُو الْيَمَانِ أَخْبَرَنَا شُعَيْبٌ حَدَّثَنَا أَبُو الزِّنَادِ عَنْ الْأَعْرَجِ عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُأَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ قَالَ رَجُلٌ لَأَتَصَدَّقَنَّ بِصَدَقَةٍ فَخَرَجَ بِصَدَقَتِهِ فَوَضَعَهَا فِي يَدِ سَارِقٍ فَأَصْبَحُوا يَتَحَدَّثُونَ تُصُدِّقَ عَلَى سَارِقٍ فَقَالَ اللَّهُمَّ لَكَ الْحَمْدُ لَأَتَصَدَّقَنَّ بِصَدَقَةٍ فَخَرَجَ بِصَدَقَتِهِ فَوَضَعَهَا فِي يَدَيْ زَانِيَةٍ فَأَصْبَحُوا يَتَحَدَّثُونَ تُصُدِّقَ اللَّيْلَةَ عَلَى زَانِيَةٍ فَقَالَ اللَّهُمَّ لَكَ الْحَمْدُ عَلَى زَانِيَةٍ لَأَتَصَدَّقَنَّ بِصَدَقَةٍ فَخَرَجَ بِصَدَقَتِهِ فَوَضَعَهَا فِي يَدَيْ غَنِيٍّ فَأَصْبَحُوا يَتَحَدَّثُونَ تُصُدِّقَ عَلَى غَنِيٍّ فَقَالَ اللَّهُمَّ لَكَ الْحَمْدُ عَلَى سَارِقٍ وَعَلَى زَانِيَةٍ وَعَلَى غَنِيٍّ فَأُتِيَ فَقِيلَ لَهُ أَمَّا صَدَقَتُكَ عَلَى سَارِقٍ فَلَعَلَّهُ أَنْ يَسْتَعِفَّ عَنْ سَرِقَتِهِ وَأَمَّا الزَّانِيَةُ فَلَعَلَّهَا أَنْ تَسْتَعِفَّ عَنْ زِنَاهَا وَأَمَّا الْغَنِيُّ فَلَعَلَّهُ يَعْتَبِرُ فَيُنْفِقُ مِمَّا أَعْطَاهُ اللَّهُ
Narrated by Abu Al-Yaman, informed by Shu'aib, narrated by Abu Az-Zinad, from Al-A'raj, from Abu Hurairah (may Allah be pleased with him): The Messenger of Allah (peace and blessings be upon him) said: A man said: 'I will surely give charity.' So he went out with his charity and placed it in the hand of a thief. The next morning, people were talking, saying: 'He gave charity to a thief.' He said: 'O Allah, to You be praise. I will surely give charity again.' So he went out with his charity and placed it in the hands of a prostitute. The next morning, people were talking, saying: 'Last night, he gave charity to a prostitute.' He said: 'O Allah, to You be praise for (giving to) a prostitute. I will surely give charity again.' So he went out with his charity and placed it in the hands of a rich man. The next morning, people were talking, saying: 'He gave charity to a rich man.' He said: 'O Allah, to You be praise for (giving to) a thief, a prostitute, and a rich man.' Then he was approached (in a dream) and told: 'As for your charity to the thief, perhaps it will prevent him from stealing. As for the prostitute, perhaps it will prevent her from committing adultery. And as for the rich man, perhaps it will teach him to spend from what Allah has given him.'