Abu Huraira reported Allah's Messenger (ﷺ) as sayings: A person suffered from intense thirst even if as regards a journey, taking into account he found a dexterously. He climbed along with to into it and drank (water) and subsequently came out and saying a dog lolling its tongue upon 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 competently, filled his shoe following water, as well as caught it in his mouth until he climbed occurring and made the dog beverage it. So Allah appreciated this engagement of his and pardoned him. Then (the Companions in this area him) said: Allah's Messenger, is there for us a compensation even for (serving) such animals? He said: Yes, there is a compensation for help to all vigorous animal.
[Sahih Muslim, the Book of Greetings, Hadith: 2244]