Sunan Ibn Majah, Book 5, Hadith 443 (Ibn Majah 1245)

It was narrated from Abu Hurairah that the Prophet (ﷺ) commanded killing the two black ones during prayer; the scorpion and the snake.