Sulaiman did not disbelieve , but the Shayatin ( devils ) disbelieved , teaching men magic and such things that came down at Babylon to the two angels , Harut and Marut , but neither of these two ( angels ) taught anyone ( such things ) till they had said , " We are only for trial , so disbelieve not ( by learning this magic from us ) . " And from these ( angels ) people learn that by which they cause separation between man and his wife , but they could not thus harm anyone except by Allah 's Leave .