The Story About Adam And Eve
Iblees was a jinn and we know that jinns have free will as well as the understanding of good and evil just like humans. He used his free will to be arrogant in front of His Creator.