From Sahih Muslim (Hadith 5855):
Abu Huraira reported Allah's Messenger (ﷺ) as saying:A woman was punished because of a cat. She had neither provided her with food nor drink, nor set her free so that she might eat the vermin of the earth
Reference: Muslim 5855