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.
عَنِ النَّبِيِّ ﷺ قَالَ يُصْبِحُ عَلَى كُلِّ سُلاَمَى مِنِ ابْنِ آدَمَ صَدَقَةٌ تَسْلِيمُهُ عَلَى مَنْ لَقِيَ صَدَقَةٌ وَأَمْرُهُ بِالْمَعْرُوفِ صَدَقَةٌ وَنَهْيُهُ عَنِ الْمُنْكَرِ صَدَقَةٌ وَإِمَاطَتُهُ الأَذَى عَنِ الطَّرِيقِ صَدَقَةٌ وَبُضْعَتُهُ أَهْلَهُ صَدَقَةٌ قَالُوا يَا رَسُولَ اللَّهِ يَأْتِي شَهْوَتَهُ وَتَكُونُ لَهُ صَدَقَةٌ قَالَ أَرَأَيْتَ لَوْ وَضَعَهَا فِي غَيْرِ حَقِّهَا أَكَانَ يَأْثَمُ قَالَ وَيُجْزِئُ مِنْ ذَلِكَ كُلِّهِ رَكْعَتَانِ مِنَ الضُّحَى