It was narrated from Aishah that the Messenger of Allah said: "There are five kinds of vermin which may be killed out and inside the Haram: Crows, kites, vicious dogs, scorpions and mice".
The Prophet Muhammad ﷺ also taught us to be kind and compassionate towards all living creatures, even those considered pests or vermin. We should only kill them if they pose a threat to our safety or property; otherwise we should try our best to find humane ways of dealing with them such as relocation or humane traps.