Salaam and Greetings of Peace:
Here is a link to the first time I ever heard the word Jinn. It is a wonderful scene in the 1940 movie Thief of Bagdad, starring Sabu as the thief, and Rex Ingram as the Jinni (which is usually anglicized as “genie.”)
Forward to about the 2:58 mark, as Sabu opens the bottle he finds on the beach, and listen as the Jinni materializes as smoke and says, “Two thousand years ago, King Solomon, master of the all the Jinn, imprisoned me in that bottle.”
Then buy Master of the Jinn to read my own interpretation of the many Jinn legends :)
PS: There is actually a legend that in Biblical times, the King of Arabia begged King Solomon to help in controlling a wicked and powerful Jinni, an Ifrit, that was wreaking havoc within his kingdom. King Solomon came and by the power of his seal ring, given to him by God to control the Jinn, imprisoned the wicked Jinni in a bottle, or oil lamp in some versions.