The Messenger of Allah ﷺ said, "Kill the two black ones during prayer, the snake and the scorpion."
قال رسول الله ﷺ: اقتلوا الأسودين فيي الصلاة: الحية والعقرب.
Reported by Abu Dawud (921), Tirmidhi (390), Nasai (1202), and Ibn Majah (1245), all of them through various routes from Yahya bin Abu Kathir, from Damdam bin Jaws, from Abu Hurairah, who related the like of it. The wording given is that of Abu Dawud. Ahmad (10116) reported it through a route from Yahya bin Abu Kathir, who said, "Damdam told me." This makes explicit that Yahya used the word "told me," since Yahya bin Abu Kathir was known to practice tadlis.Tirmidhi said, "Hasan sahih." Ibn Khuzayma (869) and Ibn Hibban (2351) also graded it sahih, as did Hakim (1/256), who said, "This is a sahih hadith, and the two of them (Bukhari and Muslim) did not include it. Damdam bin Jaws was among the trustworthy people of Yamamah. He heard from a group of the companions, and Yahya bin Abu Kathir narrated from him. Ahmad bin Hanbal affirmed his trustworthiness."On this subject there is also a report from Ibn Abbas in a lengthy hadith, narrated by Hakim (4/270), but it contains Hisham bin Ziyad, who is discarded as a narrator, and Muhammad bin Muawiya, whom Daraqutni accused of lying, as Dhahabi likewise stated in Talkhis al-Mustadrak.The meaning of the hadith is that killing the two black creatures, the snake and the scorpion, during prayer does not invalidate the prayer, because killing them is obligatory. After finishing the killing, the one praying continues from where he left off and completes the remainder of his prayer.