Merlins Wand

Merlin used his magic wand to cast the spell that sent everyone (within range) back to where they are meant to be. The wand transported Ben, Mal, Evie, Carlos and Jay (along with the talismans) back to Auradon. The wand sends Madam Mim back to the Isle of the Lost. Merlin also sends Jafar back to his Junk Shop, The Evil Queen to Castle Along the Way and Cruella DeVil to Hell Hall (they had been following their kids and ended up in range of Merlin's spell.