"A Wondrous Place" is the fifteenth episode of the sixth season of the American fantasy drama series Once Upon a Time, which aired on April 2, 2017.
In this episode, when Gideon sends Hook out of Storybrooke, the pirate must find a way to return to Emma, who is being tempted to join Regina and Snow during a ladies' night out, while the origins behind the disappearance of Agrabah are revealed.
However, the Kraken also caused critical damage to the Nautilus, but Jasmine uses her second wish to send them to Jafar's pinpointed location, Hangman Island.
After they part ways with Nemo and Liam, Hook, Aladdin, and Jasmine encounters Ariel, who had a vase-like lamp that contains Jafar, who is now a genie.
When Jasmine summons Jafar, it only ends up freeing him, since he found a way to break his genie curse while imprisoned, before going on to knock out the others with magic.
Jafar tells Jasmine that he no longer wants anything from her, only vengeance on those responsible for his imprisonment (Cyrus and Alice, from Once Upon a Time in Wonderland).
At home, Emma accepts that Hook won't be coming back and gathers his things with Henry when she gets a phone call about a bar fight.
A crying Emma is met by the bar's owner, Aesop, who tells a heartbreaking story of an artist and his wife, then gives her a napkin to wipe her tears away.