Hafsa, the wife of Allah's Apostle ﷺ, reported Allah's Messenger ﷺ having said this: There are five beasts, all of them are vicious and harmful and there is no sin for one who kills them (and these are): scorpion, crow, kite, rat and voracious dog.
The Prophet Muhammad ﷺ taught us the importance of being kind and compassionate towards all living creatures including animals. He also taught us that we should not cause harm or pain unnecessarily even if it’s an animal we consider dangerous or harmful. We should only take action when necessary for our safety or protection from harm caused by these creatures.