Jinn

Jinn is the name given to a supernatural being in many Arabic cultures. Traditionally, a jinn can be captured in a lamp or other similar vessel and releasing it obligates the jinn to use its magic to provide wishes for the person who releases it.

In the short story "Ten Times Over," the jinn released by Amr ibn al-As is so grateful and generous that it agrees to grant Amr's wishes ten times over.