Solomon did not disbelieve , it is the devils who disbelieved , teaching people magic and that which was sent down upon the angels Harut and Marut in Babylon . They did not teach anyone , until both had said : ' We have been sent as a trial ; do not disbelieve ' From them they learned how they might separate a husband and his wife .