It was narrated from Abu Hurairah that:
The Messenger of Allah (ﷺ) enjoined killing the two black ones (snakes and scorpions) while praying.