Some of the companions of the Prophet ﷺ said to him, "Messenger of Allah, the people of wealth have taken away the rewards. They pray as we pray, they fast as we fast, and they give in charity from their surplus wealth."He replied, "Has not Allah given you things by which you too can give charity? Every glorification of Allah is a charity, every declaration of His greatness is a charity, every praise of Him is a charity, every declaration of His oneness is a charity, enjoining good is a charity, forbidding evil is a charity, and in the intimate relations of any one of you there is a charity."They asked, "Messenger of Allah, does one of us fulfill his desire and receive a reward for it?"He answered, "Tell me, if he were to satisfy it unlawfully, would he not bear a sin for it? In the same way, when he satisfies it lawfully, he earns a reward."
أن ناسا من أصحاب النبي ﷺ قالوا للنبي ﷺ: يا رسول الله ذهب أهل الذنور بالأجور، يصلون كما نصلي، ويصومون كما نصوم، ويتصدقون بفضول أموالهم. قال: أوليس قد جعل الله لكم ما تصدقون: إن بكل تسبيحة صدقة، وكل تكبيرة صدقة، وكل تحميدة صدقة، وكل تهليلة صدقة، وأمر بالمعروف صدقة، ونهي عن منكر صدقة، وفي بضع أحدكم صدقة. قالوا يا رسول الله، أيأتي أحدنا شهوته ويكون له فيها أجر قال: أرأيتم لو وضعها في حرام أكان عليه فيها وزر؟ فكذلك إذا وضعها فى الحلال كان له أجر.
Muslim narrated it in the Book of Zakat (1006), from Abdullah bin Muhammad bin Asma Dubai, who said, Mahdi bin Maymun narrated to us, who said, Wasil the freedman of Abu Uyayna narrated to us, from Yahya bin Aqeel, from Yahya bin Yamar, from Abu Aswad Deeli, from Abu Dharr, who mentioned it.