It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "A woman was punished because of a cat which she confined until it died of hunger, and she entered the Fire."
The narrator said: And Allah knows best, she neither fed it nor gave it water when she confined it, nor did she let it go so that it might eat of the creatures of the earth.
In the narration of Ibn Wahb: "So she entered the Fire because of it," and it will be said to her, and Allah knows best: You neither fed it nor gave it water when you confined it, nor did you let it go so that it might eat of the creatures of the earth, until it died of hunger.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 10071