Genies have morphed over time from godlike entities to cartoonish pop culture renderings. This is the legend of genies explained.
Monstrum: Jinn--The Ancient Arabian Shapeshifters
The Kind Boy and the Genie
What Are Genies?
Origin of Genies – The history, origin, lore, and legend of genies
The Story Of Aladdin And The Magic Lamp For Kids
The Original Aladdin Story - Its History and Origins
Literal Genie - TV Tropes
Why Is the Genie in 'Aladdin' Blue?, Arts & Culture
Aladdin: 10 Things You Didn't Know About The Genie
What is the origin of the genies in mythology? - Quora