The Messenger of Allah ﷺ said, "A woman was punished because of a cat she imprisoned until it died, and so she entered the Fire on account of it. She neither fed it nor gave it water while she kept it confined, nor did she let it free to eat from the creatures of the earth."
أن رسول الله ﷺ قال: عذبت امرأة في هرة سجنتها حتى ماتت، فدخلت فيها النار، لا هي أطعمتها ولا سقتها، إذ حبستها، ولا هي تركتها تأكل من خشاش الأرض.
Bukhari narrated it in the chapters on the prophets (3482), and Muslim in righteousness and maintaining ties of kinship (2242: 143) following (2618), both of them from Abdullah bin Muhammad bin Asma, who said, Juwayria bin Asma narrated to us, from Nafi, from Abdullah bin Umar, who mentioned it.