Abu Hurairah reported,

The Messenger of Allah ﷺ said, "While a man was walking along a road, he became overwhelmed by thirst. He found a well, climbed down into it, drank, and came out. Then he saw a dog panting and licking the moist earth out of thirst. The man said, 'This dog is suffering from thirst just as I was.' So he climbed back down into the well, filled his leather sock with water, held it in his mouth as he climbed up, and gave the dog to drink. Allah was grateful to him for this and forgave him."The companions asked, "Messenger of Allah, do we have a reward for caring for these animals?"He replied, "There is a reward for tending to every living creature."

Muslim 5859

Sahih

حدثنا قتيبة بن سعيد عن مالك بن أنس فيما قرئ عليه عن سمي مولى أبي بكر عن أبي صالح السمان

عن أبي هريرة

أن رسول الله ﷺ قال بينما رجل يمشي بطريق اشتد عليه العطش فوجد بئرا فنزل فيها فشرب ثم خرج فإذا كلب يلهث يأكل الثرى من العطش فقال الرجل لقد بلغ هذا الكلب من العطش مثل الذي كان بلغ مني فنزل البئر فملأ خفه ماء ثم أمسكه بفيه حتى رقي فسقى الكلب فشكر الله له فغفر له قالوا يا رسول الله وإن لنا في هذه البهائم لأجرا فقال في كل كبد رطبة أجر

مسلم 5859صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Peace
Chapter
Virtue of giving water to and feeding respected animals
Numbering
Darussalam 5859
Muslim 5859