Aladdin

Aladdin found a lamp with an evil genius inside which gave him three wishes.