Surah 2

Surah 2:102

"And they followed what the satans used to recite over the kingdom of Solomon. Solomon did not disbelieve, but the satans disbelieved. They taught the people magic, and what had been sent down to the two angels (in) Babylon, Hārūt and Mārūt. Neither of them taught anyone, unless they both (first) said, ‘We are only a temptation, so do not disbelieve.’ And they learned from both of them how to separate a husband from his wife. Yet they did not harm anyone in this way, except by the permission of God. What they learned (only) harmed them and did not benefit them. Certainly they knew that whoever buys it has no share in the Hereafter. Evil indeed is what they have sold themselves for, if (only) they knew."

2.102 – they followed what the satans used to recite over the kingdom of Solomon

The details of this verse, including the identities of the angels “Hārūt and Mārūt,” are obscure, and the Quran provides no further explanation elsewhere. In the Quran Solomon is often associated with the satans (21.82, 38.37) and the jinn (27.17, 39; 34.12, 14).

- from The Quran with Christian Commentary: A Guide to Understanding the Scripture of Islam