Aladdin's wish-granting friend (5)
I believe the answer is:
genie
(Other definitions for genie that I've seen before include "In Arabian Nights, a magic goblin" , "Magic spirit" , "Arabian sprite" , "Arabian goblin with magic powers" , "Spirit in a bottle" .)