"Ali Baba and the Forty Thieves" (Arabic: علي بابا والأربعون لصا) is a folk tale in Arabic added to the One Thousand and One Nights in the 18th century by its French translator Antoine Galland, who heard it from Syrian storyteller Hanna Diyab. As one of the most popular Arabian Nights tales, it has been widely retold and performed in many media across the world, especially for children (for whom the more violent aspects of the story are often removed).
https://en.wikipedia.org/wiki/Ali_Baba_and_the_Forty_Thieves