Dr. Mustafa Khattab, the Clear Quran - 2:102

Translation for 2:102

They ˹instead˺ followed the magic promoted by the devils during the reign of Solomon. Never did Solomon disbelieve, rather the devils disbelieved. They taught magic to the people, along with what had been revealed to the two angels, Hârût and Mârût, in Babylon.1 The two angels never taught anyone without saying, “We are only a test ˹for you˺, so do not abandon ˹your˺ faith.” Yet people learned ˹magic˺ that caused a rift ˹even˺ between husband and wife; although their magic could not harm anyone except by Allah’s Will. They learned what harmed them and did not benefit them—although they already knew that whoever buys into magic would have no share in the Hereafter. Miserable indeed was the price for which they sold their souls, if only they knew!

Foot notes

76410

 The two angels, Hârût and Mârût, were sent to enlighten the people in Babylon so they would not confuse magic tricks with miracles. Still some people abused this knowledge, causing mischief in the land. These practices persisted until the time of Solomon, who himself was falsely accused of utilizing magic to run his kingdom, subdue the jinn, and control the wind.