Sahih al-Bukhari 6009
Isma'il (bin Abi Uwais) narrated to us that Malik told me. He narrated from Sumayy, the freed slave of Abu Bakr (bin Abdur Rahman), Sumayy from Abu Salih Samman, Abu Salih from Hazrat Abu Hurairah (ra), that the Messenger of Allah (saw) said: “A man was walking along a road when he became very thirsty, and he found a well. He went down into it, drank water and then came out, and what did he see but a dog panting and licking the earth out of thirst. The man thought: ‘This dog has reached the same state from thirst as I had.’ So he went down into the well and filled his leather sock. Then he held it in his mouth and in this way gave the dog a drink. Allah appreciated this and forgave his sins.” The people said: O Messenger of Allah (saw)! Will there be a reward for us in (good treatment of) these animals too? He (saw) said: “Yes. There is a reward on account of every living being (with a fresh liver).”
AI-translated by Islam-Today