{There is no moving creature on earth or a bird flying with its two wings, but are communities like you. We have missed nothing in the Record, then to their Lord they will be gathered.} [253] Surat al-An‘ām: 38.
The Prophet (may Allah's peace and blessings be upon him) said: "A woman was tormented because of a cat which she had locked up until it died, and she was thrown into Hellfire for that. She neither gave it food or drink when she locked it up nor freed it so that it would eat from the vermin of the earth." [254] Agreed upon.
The Prophet (may Allah's peace and blessings be upon him) also said: "A man saw a dog eating mud from (the severity of) thirst. So, he took his shoe (and filled it) with water and kept on pouring the water for the dog till it quenched its thirst. Allah accepted his deed and admitted him to Paradise." [255] Narrated by Al-Bukhāri and Muslim.