Sunan Ibn Majah, Volume 2, Book 5, Hadith 1246 (DarusSalam)

It was narrated that ‘Aishah said: “The Prophet was stung by a scorpion while he was performing prayer, and he said: ‘May Allah curse the scorpion, for it does not spare anyone, whether he is praying or not. Kill them whether you are in Ihram or not.’” In Al-Hill (outside the sacred precincts of Makkah) or Al-Haram (the sacred precincts or Makkah).

حَدَّثَنَا أَحْمَدُ بْنُ عُثْمَانَ بْنِ حَكِيمٍ الأَوْدِيُّ، وَالْعَبَّاسُ بْنُ جَعْفَرٍ، قَالاَ حَدَّثَنَا عَلِيُّ بْنُ ثَابِتٍ الدَّهَّانُ، حَدَّثَنَا الْحَكَمُ بْنُ عَبْدِ الْمَلِكِ، عَنْ قَتَادَةَ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، عَنْ عَائِشَةَ، قَالَتْ لَدَغَتِ النَّبِيَّ ـ صلى الله عليه وسلم ـ عَقْرَبٌ وَهُوَ فِي الصَّلاَةِ فَقَالَ ‏ "‏ لَعَنَ اللَّهُ الْعَقْرَبَ مَا تَدَعُ الْمُصَلِّيَ وَغَيْرَ الْمُصَلِّي اقْتُلُوهَا فِي الْحِلِّ وَالْحَرَمِ ‏" ‏ ‏.‏

sunnah.com