After Genie Jafar got s**ed into the lamp Sora's Fire spell got
upgraded to Fira and he also received Ansem's Report 1. The screen
switches to Jasmine who woke up and suddenly captured by someone. Sora's
group got up to the area where Jasmine disappeared.
Aladdin: Jasmine? Jasmine!
The Keyhole is illuminating and Sora uses his Keyblade to shoot a beam
at the Keyhole locking it forever from the Heartless. Then suddenly, the
area is shaking...
Goofy: Whoa, we'd better get out of here!
Aladdin: Jasmine!
Sora's groups restrained Aladdin so he stays with them and not get left
behind. The Carpet takes Sora's group out of the Cave of Wonders and
back to Agrabah. Later, in Aladdin's House...
Aladdin: So, Jasmine's no longer in Agrabah. Sora, let's go find her.
Sora: Sorry. I can't take you with me.
Aladdin: Wh-Why not?
Goofy: I sure wish we could...
Donald: But we can't. If we take him to another world, we would be...
Goofy: Muh... Mudd--
Donald: Meddling!
Sora: Aladdin, we'll find Jasmine. I promise.
Genie: (to Aladdin) Uh, earth to Al. Hello? You still have one wish
left. Look, just say the word. Ask me to find Jasmine for you.
Aladdin: I...I wish... ...for your freedom, Genie.
Genie's legs were revealed and his cuffs on his wrists disappeared.
Aladdin: A deal's a deal, Genie. Now, you can go anywhere you want.
You're your own master. But if you can, it'd be great if you could go
along with them and help Sora find Jasmine.
Genie: Hmm. Sorry, Al. I'm done taking orders from others. But... A
favor, now that's entirely different. I guess I could give that a try.
After all, we're pals, right, Al?
Aladdin: Genie...
Genie: Just leave it to me!
Later with Sora's group, Sora can now summon Genie.
Aladdin: Here. Take this with you.
Sora received Three Wishes key chain and Sora's group learned Green
Trinity.
Aladdin: Sora, please find Jasmine for me.