Sahih Muslim 4148: The Greeting of Peace
It is narrated from Hazrat Abu Hurairah (ra) that the Messenger of Allah (saw) said: “A man was walking along a road. He became very thirsty. He found a well; he went down into it and drank water. Then he came out, and what does he see but a dog with its tongue hanging out, panting and licking the moist earth because of thirst. The man said: ‘This dog has become thirsty just as I was thirsty.’ At this he went down into the well and filled his leather sock with water. Then he held it in his mouth until he climbed up, and gave the dog water to drink. Allah the Exalted appreciated this and forgave him.” They (the Companions (ra)) submitted: O Messenger of Allah (saw)! Is there a reward for us even in these animals? He (saw) said: “In every living being there is a reward.”
AI-translated by Islam-Today