Sunan an-Nasa'i, Book 13, Hadith 25 (Nasa'i 1205)

It was narrated from Abu Hurairah that:

The Messenger of Allah (ﷺ) enjoined killing the two black ones (snakes and scorpions) while praying.