For the ancient Semites, jinn were spirits of vanished ancient peoples who acted during the night and disappeared with the first light of dawn;they could make themselves invisible or change shape into animals at will; these spirits were commonly believed to be responsible for diseases and for the manias of some lunatics. (Isn’t similar to spirited away idea? I wonder if Japanese mythology share the same idea)
Back to the subject! Many think that Arab used the Jinn to protect Tombs and Treasure!
This is a Djinn Blocks in Petra
and what about Egyptian! Did Egyptian knew about jinn (but used another names?)
Jasmine Day: When we get to the Middle Ages the Arabs had their own stories. Jinn spirits were believed to guard the treasures in Egyptian tombs and even to repel attempts to appropriate mummies for mumia. An Arabic tomb robbing manual from the Middle Ages, The Book of Buried Pearls and of the Precious Mystery, Giving Indications Regarding the Hiding Places of Finds and Treasures, supplied magical incantations to ward off jinn. Some spells were meant to cause treasures believed to have been rendered invisible by the ancients to materialize, and depictions of the Opening of the Mouth ceremony on tomb walls were interpreted as proof that mummies could come back to life. Malevolent spirits manifest the guilt — or fear of social stigma — at robbing the dead that must be suppressed to satisfy a need or greed for their riches.