As the Almighty says, “.
As the Almighty says, “...and Sulaiman was not an unbeliever, but the shaitans disbelieved, they taught men sorcery...” (Surah al-Baqarah 2:102) Regarding Harut and Marut the Holy Qur’an says: “...and that was sent down to the angels at Babel, Harut and Marut, yet these two taught no man until they had said, “Surely we are only a trial, therefore do not be a disbeliever.” Even then men learnt from these two, magic by which they might cause a separation between a man and his wife; and they cannot hurt with it anyone except with Allah’s permission, and they learnt what harmed them and did not profit them...” (Surah al-Baqarah 2:102) We should however know that some of the commentaries of the Holy Qur’an by Ahle-Sunnat have recorded some lewd traditions on this subject; and their lewdness itself proves their forged nature.
For example they say that the Jinns stole the ring of Hazrat Sulaiman (a.s.) and with the help of its power ruled for forty days from his throne and during this period the satans spread the practice of sorcery among the masses. They have also written that Harut and Marut were two angels and when they became seized with sensuality, they drank wine and murdered a man; later they committed adultery with a woman.
The woman then ascended to the heavens; and the star Zahra on the sky is that same woman. This is a false allegation because during his conversation on this subject with Ma’mūn, as mentioned in Uyun al-Akhbar ar-Riďa, Imam Riďa (a.s.) says that Harut and Marut were two angels who had taught people the method of nullifying the magic of the sorcerers so as to enable them to prevent the effect of magical rites practiced by the magicians.
They did not teach any magical spell before warning them that this was a Divine test and they must not fall prey to infidelity but some people became disbelievers by misusing the spells to cause discord between husband and wife, though the proper utility of the spell was obstructing black magic. Even the Shia scholars differ in the explanation of this verse. Tafsīr Majmaul Bayan has also recorded different views.
Some thinkers have opined that this is one of the Divine secrets and they further offer the exegesis that Harut and Marut signify the intellect and soul of man. These two entities changed their abstract form and assumed a physical body. Therefore, they were examined in their material life. They became engrossed in satisfying their carnal desires.