It was narrated from Abu Hurairah that the Prophet (ﷺ) commanded killing the two black ones during prayer; the scorpion and the snake.
Sunan Ibn Majah Book 5, Hadith 443