Language:
كتاب الأدب
78  
Good Manners and Form (Al-Adab)
(33)
Chapter: Enjoining all that is Al-Ma'ruf is considered as a Sadaqa
(33)
باب كُلُّ مَعْرُوفٍ صَدَقَةٌ
Sahih al-Bukhari 6022

Narrated Abu Musa Al-Ash`ari:

The Prophet (ﷺ) said, "On every Muslim there is enjoined (a compulsory) Sadaqa (alms)." They (the people) said, "If one has nothing?' He said, "He should work with his hands so that he may benefit himself and give in charity." They said, "If he cannot work or does not work?" He said, "Then he should help the oppressed unhappy person (by word or action or both)." They said, "If he does not do it?" He said, "Then he should enjoin what is good (or said what is reasonable).' They said, "If he does not do that''' He said, "Then he should refrain from doing evil, for that will be considered for Him as a Sadaqa (charity) . "

حَدَّثَنَا آدَمُ، حَدَّثَنَا شُعْبَةُ، حَدَّثَنَا سَعِيدُ بْنُ أَبِي بُرْدَةَ بْنِ أَبِي مُوسَى الأَشْعَرِيِّ، عَنْ أَبِيهِ، عَنْ جَدِّهِ، قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم ‏"‏ عَلَى كُلِّ مُسْلِمٍ صَدَقَةٌ ‏"‏‏.‏ قَالُوا فَإِنْ لَمْ يَجِدْ قَالَ ‏"‏ فَيَعْمَلُ بِيَدَيْهِ فَيَنْفَعُ نَفْسَهُ وَيَتَصَدَّقُ ‏"‏‏.‏ قَالُوا فَإِنْ لَمْ يَسْتَطِعْ أَوْ لَمْ يَفْعَلْ قَالَ ‏"‏ فَيُعِينُ ذَا الْحَاجَةِ الْمَلْهُوفَ ‏"‏‏.‏ قَالُوا فَإِنْ لَمْ يَفْعَلْ قَالَ ‏"‏ فَيَأْمُرُ بِالْخَيْرِ ‏"‏‏.‏ أَوْ قَالَ ‏"‏ بِالْمَعْرُوفِ ‏"‏‏.‏ قَالَ فَإِنْ لَمْ يَفْعَلْ قَالَ ‏"‏ فَيُمْسِكُ عَنِ الشَّرِّ، فَإِنَّهُ لَهُ صَدَقَةٌ ‏"‏‏.‏
Reference : Sahih al-Bukhari 6022
In-book reference : Book 78, Hadith 53
USC-MSA web (English) reference : Vol. 8, Book 73, Hadith 51
  (deprecated numbering scheme)