Sunan an-Nasa'i, Book 13, Hadith 24 (Nasa'i 1204)

It was narrated that Abu Hurairah said:

"The Messenger of Allah (ﷺ) commanded us to kill the two black ones (snakes and scorpions) while praying."