Abu Hurayrah (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) commanded us "to kill the two black things, namely the snake and the scorpion, even in the prayer."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3439