Devils
They followed what the devils taught during Solomon’s reign. But Solomon did not disbelieve; it was the devils who spread falsehood, teaching people magic and what was revealed to Harut and Marut, the two angels in Babylon. Yet these angels never taught anyone without first warning, 'We are only a test, so do not fall into disbelief.' But people learned from them how to sow discord between spouses. Though they could not harm anyone except by Allah’s permission, they learned what would harm them rather than benefit them. They knew that whoever practiced such things would have no share in the Hereafter. How terrible was the price for which they sold their souls, if only they knew!
2:102And follow that which the devils falsely related against the kingdom of Solomon. Solomon disbelieved not; but the devils disbelieved, teaching mankind magic and that which was revealed to the two angels in Babel, Harut and Marut. Nor did they (the two angels) teach it to anyone till they had said: We are only a temptation, therefore disbelieve not (in the guidance of Allah). And from these two (angles) people learn that by which they cause division between man and wife; but they injure thereby no-one save by Allah's leave. And they learn that which harmeth them and profiteth them not. And surely they do know that he who trafficketh therein will have no (happy) portion in the Hereafter; and surely evil is the price for which they sell their souls, if they but knew.