The origin of evil as described in Islam goes back to the early times when Allah, SWT (God), created Adam from clay. He then asked his other creations, Angels and Jinn to prostrate to Adam. All did except “Iblis,” Iblis was a Jinn and believed that hence he was created from fire, an element superior to clay, so then, why shall he prostrate to someone who is created from mere clay.
The scholars says that it is the most hopeful verse in the Qur’an. Allah (SWT) acknowledges and addresses those who have excessed and tells them that, even if you have transgressed, do not despair His mercy. Just seek forgiveness with sincerity.