Islam encourages the preservation of the environment and the avoidance of unnecessary harm. It is advised to prioritize the use of non-harmful and environmentally friendly methods for pest control whenever possible. If the use of pesticides becomes necessary, it should be done responsibly, following applicable guidelines and regulations, while striving to minimize negative impacts on the ecosystem.