When We said to the angels: "Submit to Adam." They all submitted except for Satan, he was of the Jinn, so he disobeyed the order of his Lord. "Will you take him and his progeny as allies besides Me, while they are your enemy?" Miserable for the wicked is the substitute!
Translation endnotes
[18:50-51] Perhaps the events that tested God's creation in paradise (38:69), resulted in their classification as controllers, jinns and humans. See 2:34.