'Abd ar-Rahman b. Abu Laila. said that Abu Laila reported God’s messenger as saying, "When a snake appears in a dwelling say to it, ‘We ask you by the covenant made with Noah and the covenant made with Solomon son of David not to harm us.’ Then if it comes back, kill it."
Salman said the Prophet was asked about locusts and replied, "They are the most numerous of God’s hosts. I neither eat them nor declare them unlawful."
Abu Dawud transmitted it, but Muhyi as-Sunna said it is weak.