وَٱتَّبَعُواْ مَا تَتۡلُواْ ٱلشَّيَٰطِينُ عَلَىٰ مُلۡكِ سُلَيۡمَٰنَۖ وَمَا كَفَرَ سُلَيۡمَٰنُ وَلَٰكِنَّ ٱلشَّيَٰطِينَ كَفَرُواْ يُعَلِّمُونَ ٱلنَّاسَ ٱلسِّحۡرَ وَمَآ أُنزِلَ عَلَى ٱلۡمَلَكَيۡنِ بِبَابِلَ هَٰرُوتَ وَمَٰرُوتَۚ وَمَا يُعَلِّمَانِ مِنۡ أَحَدٍ حَتَّىٰ يَقُولَآ إِنَّمَا نَحۡنُ فِتۡنَةٞ فَلَا تَكۡفُرۡۖ فَيَتَعَلَّمُونَ مِنۡهُمَا مَا يُفَرِّقُونَ بِهِۦ بَيۡنَ ٱلۡمَرۡءِ وَزَوۡجِهِۦۚ وَمَا هُم بِضَآرِّينَ بِهِۦ مِنۡ أَحَدٍ إِلَّا بِإِذۡنِ ٱللَّهِۚ وَيَتَعَلَّمُونَ مَا يَضُرُّهُمۡ وَلَا يَنفَعُهُمۡۚ وَلَقَدۡ عَلِمُواْ لَمَنِ ٱشۡتَرَىٰهُ مَا لَهُۥ فِي ٱلۡأٓخِرَةِ مِنۡ خَلَٰقٖۚ وَلَبِئۡسَ مَا شَرَوۡاْ بِهِۦٓ أَنفُسَهُمۡۚ لَوۡ كَانُواْ يَعۡلَمُونَ ١٠٢
They followed what the evil ones gave out (falsely) against the power of Solomon: the blasphemers Were, not Solomon, but the evil ones, teaching men Magic, and such things as came down at babylon to the angels Harut and Marut. But neither of these taught anyone (Such things) without saying: "We are only for trial; so do not blaspheme." They learned from them the means to sow discord between man and wife. But they could not thus harm anyone except by Allah's permission. And they learned what harmed them, not what profited them. And they knew that the buyers of (magic) would have no share in the happiness of the Hereafter. And vile was the price for which they did sell their souls, if they but knew!
wattaba‘uu maa tatluu ashshayaatiinu ‘alaa mulki sulaymaana wamaa kafara sulaymaanu walaakinna ashshayaatiina kafaruu yu‘allimuuna annaasa assihra wamaa ʼunzila ‘alaa almalakayni bibaabila haaruuta wamaaruuta wamaa yu‘allimaani min ʼahadin hattaa yakuulaa ʼinnamaa nahnu fitnatun falaa takfur fayata‘allamuuna minhumaa maa yufarrikuuna bihi bayna almarʼi wazawjihi wamaa hum bidaarriina bihi min ʼahadin ʼillaa biʼizni allaahi wayata‘allamuuna maa yadurruhum walaa yanfa‘uhum walakad ‘alimuu lamani ishtaraahu maa lahu fii alʼaahirati min halaakin walabiʼsa maa sharaw bihi ʼanfusahum law kaanuu ya‘lamuuna
And surely they knew well that whoever buys it, he shall have no share in the Hereafter, that is, [he shall have no] portion for his total concern with the soul and caprice, and his use of that to earn the [temporary] enjoyments and transient things of this world. [evil then would have been that they sold themselves for, if they had but known].