Anecdotal stories indicates that the prophet really loved cats and they are considered to be clean and thus is allowed to be in homes and mosque's.
Dogs on the other hand.
Dogs on the other hand.
Thus, dogs have thus been declared as unclean and impure by Muslim scholars but I do have Muslim friends who has dogs, you just need to wash where they touch you and keep them outside the house.