Sunan Abi Dawud, Hadith 5223

Narrated AbuDharr: The Prophet said: In the morning alms are due from every bone in man's fingers and toes. Salutation to everyone he meets is alms; enjoining good is alms; forbidding what is disreputable is alms; removing what is harmful from the road is alms; having sexual intercourse with his wife is alms. The people asked: He fulfils his desire, Messenger of Allah; is it alms? He replied: Tell me if he fulfilled his desire where he had no right, would he commit a sin ? He then said: Two rak'ahs which one prays in the forenoon serve instead of all that. Abu Dawud said: Hammad did not mention enjoining good and forbidding what is disreputable.

حَدَّثَنَا مُسَدَّدٌ، حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ، ح وَحَدَّثَنَا أَحْمَدُ بْنُ مَنِيعٍ، عَنْ عَبَّادِ بْنِ عَبَّادٍ، - وَهَذَا لَفْظُهُ وَهُوَ أَتَمُّ - عَنْ وَاصِلٍ، عَنْ يَحْيَى بْنِ عُقَيْلٍ، عَنْ يَحْيَى بْنِ يَعْمَرَ، عَنْ أَبِي ذَرٍّ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏"‏ يُصْبِحُ عَلَى كُلِّ سُلاَمَى مِنِ ابْنِ آدَمَ صَدَقَةٌ تَسْلِيمُهُ عَلَى مَنْ لَقِيَ صَدَقَةٌ وَأَمْرُهُ بِالْمَعْرُوفِ صَدَقَةٌ وَنَهْيُهُ عَنِ الْمُنْكَرِ صَدَقَةٌ وَإِمَاطَتُهُ الأَذَى عَنِ الطَّرِيقِ صَدَقَةٌ وَبُضْعَتُهُ أَهْلَهُ صَدَقَةٌ ‏"‏ ‏.‏ قَالُوا يَا رَسُولَ اللَّهِ يَأْتِي شَهْوَتَهُ وَتَكُونُ لَهُ صَدَقَةٌ قَالَ ‏"‏ أَرَأَيْتَ لَوْ وَضَعَهَا فِي غَيْرِ حَقِّهَا أَكَانَ يَأْثَمُ ‏"‏ ‏.‏ قَالَ ‏"‏ وَيُجْزِئُ مِنْ ذَلِكَ كُلِّهِ رَكْعَتَانِ مِنَ الضُّحَى ‏"‏ ‏.‏ قَالَ أَبُو دَاوُدَ لَمْ يَذْكُرْ حَمَّادٌ الأَمْرَ وَالنَّهْىَ ‏.‏

sunnah.com

also referenced under: Hadith 5243 (DarusSalam)