and accepted what the shaitans falsely attributed to the kingdom of Sulaiman; not that Sulaiman was an unbeliever, it was the shaitans who were unbelievers: they taught witchcraft to the people and that which was revealed to the two angels, Harut and Marut in the city of Babylon. Yet these two angels never taught magic to anyone without saying: “We have been sent to tempt you; do not renounce your faith.” Inspite of this warning those people kept on learning, from the angels, the magic which could cause discord between husband and wife; although they could harm none with it except with Allah’s permission. They learned, indeed, what harmed them and did not profit them; even though they knew fully well that the buyers of magic would have no share in the happiness of the Hereafter. Surely, they sold their souls for a bad price, if they could understand it!
Meaning:-
Witchcraft: the practice of magic, especially black magic