Hadith - Bukhari 3:515, Narrated Abu Huraira
I heard Allah's Apostle saying; "Angels (of Mercy) do not enter a house wherein there is a dog or a picture of a living creature (a human being or an animal)."
Hadith - Muslim, Narrated 'Aisha
Gabriel made a promise with Allah's Messenger to come at a definite hour; that hour came but he did not visit him. And there was in his hand (in the hand of Allah's Apostle) a staff. He threw it from his hand and said: Never has Allah or His messengers (angels) ever broken their promise. Then he cast a glance (and by chance) found a puppy under his cot and said: Aisha, when did this dog enter here ? She said: By Allah, I don't know. He then commanded and it was turned out. Then Gabriel came and Allah's Messenger said to him: You promised me and I waited for you, but you did not come, whereupon he said: It was the dog in your house which prevented me (to come), for we (angels) do not enter a house in which there is a dog or a picture.
Hadith - Bukhari 3:515, Narrated Abu Huraira
Allah's Apostle said, "Whoever keeps a dog, one Qirat of the reward of his good deeds is deducted daily, unless the dog is used for guarding a farm or cattle." Abu Huraira (in another narration) said from the Prophet, "unless it is used for guarding sheep or farms, or for hunting." Narrated Abu Hazim from Abu Huraira: The Prophet said, "A dog for guarding cattle or for hunting."
Here's I have a good answers similar to your question, may it beneficial
Q.) I am a 15 year old Muslim American and my mother is buying a dog. I heard that if I touch the dog, I cannot pray. Is this true? What should I do?
A.) All creatures are the creation of Allah Taãla and do deserve the recognition of being a creation of the Almighty. As much as Muslims detest even the sight of pigs - it is the creation of Allah Taãla - and because Allah has placed life into it, we cannot inflict pain nor torture the pig.
Similarly Allah Taãla created the dog from among His creation. This does not mean that we should love the dog. It is perhaps the indoctrination of the Western culture that 'The dog is Man's best Friend'. The theory that 'dogs are very dependent on Human affection' is a myth - again culture and custom has helped to develop this unnatural behavior.
Allah Taãla the Creator of this Universe - having created the dog would surely have known that the dog requires Human affection and love to exist in this world. Rasulullah (Sallallaaahu Álayhi Wasallam) would have advised us to keep dogs as pets. On the contrary, we are instructed not to keep dogs as pets and 'love' them as exemplified by the non-Muslims. Remember our life is structured and bound by the Shariah i.e. The Noble Qurãn and the beautiful example of Rasulullah (Sallallaaahu Álayhi Wasallam). Consider these Ahaadith:
Sayyidna Abu Talha (Radhiyallaahu Ánhu) reports that Rasulullah (Sallallaaahu Álayhi Wasallam) said, "Angels do not enter a house wherein there is a dog or an animate picture. (Sahih Bukhari Hadith no. 2986)
Sayyidna Ibn Abbas (Radhiyallaahu Ánhuma) reports from Sayyidna Maimoona (Radhiyallaahu Ánha) that once Rasulullah (Sallallaaahu Álayhi Wasallam) became sad; and said that Jibra'eel (Álayhis Salaam) promised to meet him at night but did not turn up. "By Allah what has kept him back," said the Prophet (Sallallaaahu Álayhi Wasallam). Then he realised a puppy was under his bed. He ordered that the puppy be removed and the area be sprinkled with water. In the afternoon when Jibra'eel (Álayhi Salaam) came, Rasulullah (Sallallaaahu Álayhi Wasallam) enquired as to the delay. Jibra'eel (Álayhi
Salaam) said that we, the group of Angels do not enter a house wherein there is a dog or pictures. (Sahih Muslim Hadith no.3928)
In the light of these Ahaadith and other narrations it is not permissible to keep dogs as pets. The household is deprived of the Mercy of Allah Taãla.
However, Jurists have stated that it is permissible to keep a dog for security purposes, farming and hunting.
The saliva of a dog is Najis (impure). If it touches the clothes or body, that portion also becomes impure and must be washed. And Allah Ta'ala Knows Best.