Praise be to Allaah.
There is nothing wrong with that, but you have to get the dog out of the house and not keep it inside, unless it is for one of three reasons, namely hunting, farming or herding livestock. The Prophet (peace and blessings of Allaah be upon him) said: “Whoever keeps a dog, unless it is a dog for hunting, herding or farming, his reward will decrease by two qiraats (i.e., a large amount) every day.” (Agreed upon).
And Allaah is the Source of strength.
Majmoo’ Fataawa wa Maqaalaat Mutanawwi’ah li Samaahat al-Shaykh al-‘Allaamah ‘Abd al-‘Azeez ibn ‘Abd-Allaah ibn Baaz (may Allaah have mercy on him), vol. 8, p. 362