Jinn are not wish-granting genies but beings judged by God like humans
The genie of Western storybooks is a distant echo of the jinn. In Islamic belief they are invisible beings with subtle bodies, able to take the shape of snakes or people, and, crucially, morally responsible. A jinni can be a believer or an unbeliever, and faces the same divine judgement as any human.
Islam places jinn and people on an equal footing before God: both choose whether to accept guidance, and both face an afterlife. Because jinn are neither good nor evil by nature, the faith could absorb spirits from other traditions as it spread, and the idea probably folds together several pre-Islamic beliefs. The Quran does, however, condemn the old Arabian habit of worshipping jinn or seeking their protection.
Descriptions stress concealment. The Arabic word comes from a Semitic root meaning to hide, and some writers translate it as beings hidden from the senses. Related words make a curious family: majnun means possessed or mad, jannah means garden or paradise, and janin means embryo. Jinn are said to prefer snake form but may appear as scorpions, lizards or humans. They mostly keep to themselves in tribal societies, yet retaliate when harmed, and the most serious encounters are said to end in possession.
Where the word came from is disputed. One theory links it to the Latin genius, a Roman guardian spirit, through contact in the era of Augustus and Tiberius; another points to Aramaic words for a guardian deity; a third to an Avestan female spirit called Jaini. The English genie took a separate path, borrowed from French genie when the Thousand and One Nights was translated into English in the 18th century, following a 1706 French edition where it was chosen for its similar sound and sense.
Belief in jinn predates Islam and appears in pre-Islamic poetry as well as the Quran. Some scholars think they began as malevolent desert spirits in animal form; others see them as nature gods pushed aside by greater deities. Today belief remains widespread across the Muslim world, and many people wear amulets inscribed with a name of God, trusting that jinn cannot harm the wearer.
Source: Jinn