Another habit of the people of Jahiliyyah was that they placed their belief in books of magic instead of the Book of Allah, as Allah says:
وَلَمَّا جَاءَهُمْ رَسُولٌ مِنْ عِنْدِ اللَّـهِ مُصَدِّقٌ لِمَا مَعَهُمْ نَبَذَ فَرِيقٌ مِنَ الَّذِينَ أُوتُوا الْكِتَابَ كِتَابَ اللَّـهِ وَرَاءَ ظُهُورِهِمْ كَأَنَّهُمْ لَا يَعْلَمُونَ ٭ وَاتَّبَعُوا مَا تَتْلُو الشَّيَاطِينُ عَلَى مُلْكِ سُلَيْمَانَ وَمَا كَفَرَ سُلَيْمَانُ وَلَـكِنَّ الشَّيَاطِينَ كَفَرُوا يُعَلِّمُونَ النَّاسَ السِّحْرَ وَمَا أُنْزِلَ عَلَى الْمَلَكَيْنِ بِبَابِلَ هَارُوتَ وَمَارُوتَ وَمَا يُعَلِّمَانِ مِنْ أَحَدٍ حَتَّى يَقُولَا إِنَّمَا نَحْنُ فِتْنَةٌ فَلَا تَكْفُرْ فَيَتَعَلَّمُونَ مِنْهُمَا مَا يُفَرِّقُونَ بِهِ بَيْنَ الْمَرْءِ وَزَوْجِهِ وَمَا هُمْ بِضَارِّينَ بِهِ مِنْ أَحَدٍ إِلَّا بِإِذْنِ اللَّـهِ وَيَتَعَلَّمُونَ مَا يَضُرُّهُمْ وَلَا يَنْفَعُهُمْ وَلَقَدْ عَلِمُوا لَمَنِ اشْتَرَاهُ مَا لَهُ فِي الْآخِرَةِ مِنْ خَلَاقٍ وَلَبِئْسَ مَا شَرَوْا بِهِ أَنْفُسَهُمْ لَوْ كَانُوا يَعْلَمُونَ
“Whenever a Messenger from Allah came to them, confirming their book, a group of those People of the Book threw the Book of Allah behind their backs, as if they did not know. And they followed what the devils used to recite during the kingdom of (Prophet) Sulayman. Sulayman did not disbelieve, rather the disbelief was that of the devils; they used to teach people magic, and what was sent down upon the two angels in Babylon, Harut and Marut. Those two did not teach anyone until they said, ‘We are only a trial, so do not disbelieve.’ Then people would learn from them that by which they cause separation between husband and wife. And in reality they cannot harm anyone without Allah’s permission. These people learn what harms them and does not benefit them, and they know with certainty that the one who buys it has no share in the Hereafter. And it is the worst thing for which they sell themselves, if only they knew.”
The detailed discussion of this verse is found in the books of tafsir. This trait of Jahiliyyah is still present today in many people, especially the so-called righteous, who perform feats through various magical practices, such as holding back snakes, being struck with weapons and entering fire. The falsehood of these is established by the Shari’ah, but they abandoned this divine Shari’ah, threw the divine Book behind their backs, and began to follow the nonsense that the devils used to bring to them, claiming that it is their karamah (miracle of a saint). In reality, a karamah never appears from a sinner, and the sinfulness of those who perform these feats is evident. The truth is that they have made their religion a game and a spectacle. Concerning such people, Allah says:
الَّذِينَ ضَلَّ سَعْيُهُمْ فِي الْحَيَاةِ الدُّنْيَا وَهُمْ يَحْسَبُونَ أَنَّهُمْ يُحْسِنُونَ صُنْعًا
“Those whose effort in the life of this world has been wasted, while they think that they are doing good work.”