Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:11215Ibn Numayr > ʿUbaydullāh

[Machine] A man found a snake in his house, so he took his spear and pierced it. However, the snake did not die, but the man himself died. The Messenger of Allah ﷺ was informed of this and he said, "Indeed, you have companions who possess magical powers. So, if you see anything from them, put it to trial three times. If you see it after that, then kill it."  

أحمد:١١٢١٥حَدَّثَنَا ابْنُ نُمَيْرٍ أَخْبَرَنَا عُبَيْدُ اللهِ عَنْ صَيْفِيٍّ عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ قَالَ

وَجَدَ رَجُلٌ فِي مَنْزِلِهِ حَيَّةً فَأَخَذَ رُمْحَهُ فَشَكَّهَا فِيهِ فَلَمْ تَمُتِ الْحَيَّةُ حَتَّى مَاتَ الرَّجُلُ فَأُخْبِرَ بِهِ رَسُولُ اللهِ ﷺ فَقَالَ إِنَّ مَعَكُمْ عَوَامِرَ فَإِذَا رَأَيْتُمْ مِنْهُمْ شَيْئًا فَحَرِّجُوا عَلَيْهِ ثَلَاثًا فَإِنْ رَأَيْتُمُوهُ بَعْدَ ذَلِكَ فَاقْتُلُوهُ