From Wikipedia... I hope this answers your question?
In Islam and pre-Islamic Arabian folklore, a genie (also jinn, djinn, from Arabic جني jinnī) is a supernatural fiery creature which possesses free will. Genies are mentioned in the Qur'an, wherein a whole Sura is named after them (Al-Jinn). They can be either good or evil. In some cases, evil genies are said to lead humans astray. In Islam, Satan, known in Arabic as Iblis, is the iconic genie that refused to bow down to Adam when ordered to by Allah
From Wikipedia... I hope this answers your question?
In Islam and pre-Islamic Arabian folklore, a genie (also jinn, djinn, from Arabic جني jinnī) is a supernatural fiery creature which possesses free will. Genies are mentioned in the Qur'an, wherein a whole Sura is named after them (Al-Jinn). They can be either good or evil. In some cases, evil genies are said to lead humans astray. In Islam, Satan, known in Arabic as Iblis, is the iconic genie that refused to bow down to Adam when ordered to by Allah