Abdullah bin Umar reported,

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."

Azami 13924

Sahih

عن عبد الله بن عمر

أن رسول الله ﷺ قال: عذبت امرأة في هرة سجنتها حتى ماتت، فدخلت فيها النار، لا هي أطعمتها ولا سقتها، إذ حبستها، ولا هي تركتها تأكل من خشاش الأرض.

الأعظمي 13924صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Noble character
Section
Mercy toward animals
Numbering
Jami al-Kamil 13924 (2nd edition)
Azami 13924