Narrated Abu Huraira:Allah's Messenger (ﷺ) said, "While a man was walking he felt thirsty and went down a well and drank water from it. On coming out of it, he saw a dog panting and eating mud because of excessive thirst. The man said, 'This (dog) is suffering from the same problem as that of mine. So he (went down the well), filled his shoe with water, caught hold of it with his teeth and climbed up and watered the dog. Allah thanked him for his (good) deed and forgave him." The people asked, "O Allah's Messenger (ﷺ)! Is there a reward for us in serving (the) animals?" He replied, "Yes, there is a reward for serving any animate
Abu Huraira reported Allah's Messenger (ﷺ) as sayings:A person suffered from intense thirst while on a journey, when he found a well. He climbed down into it and drank (water) and then came out and saw a dog lolling its tongue on account of thirst and eating the moistened earth. The person said: This dog has suffered from thirst as I had suffered from it. He climbed down into the well, filled his shoe with water, then caught it in his mouth until he climbed up and made the dog drink it. So Allah appreciated this act of his and pardoned him. Then (the Companions around him) said: Allah's Messenger, is there for us a reward even for (serving) such animals? He said: Yes, there is a reward for service to every living animal
These verses and narrations are gathered for study and reflection. They are not a fatwa. For a ruling on your specific circumstances, please consult a qualified scholar in your community.