The Messenger of Allah said: "Cats do not invalidate the prayer, because they are one of the things that are useful in the house." (Using translation from Ibn Mājah 369)
أَنَّ النَّبِيَّ ﷺ قَالَ «الْهِرَّةُ لَا تَقْطَعُ الصَّلَاةَ لِأَنَّهَا مِنْ مَتَاعِ الْبَيْتِ»