ome people read in the Sunnah that angels do not enter a house where there is a dog or a statue. The hadith is authentic as the angels refuse to enter a place where there is a dog. This hadith is based on a narration that Jibril was once late in visiting the Messenger of God [peace and blessings be upon him] although he had promised him that he would visit him. The Messenger went out of his house to meet him and inquired about the reason for his delay.
The point is that the angels’ refusal to enter a place where there is a dog does not evidence the impurity of dogs but it rather evidences that the angels, who are among the matters of the unseen, do not like to enter such a place where a dog is present.
In our lives, a person may refrain from something although it is permissible. Therefore, whoever wants to raise a dog at his home, must allocate a place for it or allocate a place for his prayers so that the angels may enter his house. The Prophet [peace and blessings be upon him] once contemplated exterminating dogs on the basis that angels dislike them. So Jibril came to him and said, “ no,they are a nation among nations.”
So keeping a dog in the house is permissible and you can dedicate a special room for prayers where dogs are not allowed to enter.
source dal al ifta