Islamic tradition and culture includes a number of stories and legends that are
mythological but do not derive from sacred texts.
For example, note stories of genies, magic lamps, flying carpets, and wishes. Also Tales of Arabian Nights, Alladin, etc.