The Magician's Code

"The Magician's Code" is the hour-long final episode of the seventh season of the CBS sitcom How I Met Your Mother.

Meanwhile, Barney and Marshall are stuck in Atlantic City following the events of "Good Crazy" and must find a way back to Manhattan for the birth.

The two are left trying to find another way back to the city when several senior citizens on the bus, inspired by Marshall's predicament, claim to be having heart attacks to force the driver to take a detour to the hospital where Lily is giving birth.

After the birth of Marshall and Lily's son, Robin tells Ted that all the women he has pursued in the past were the wrong person, with Victoria being the only exception.

After seeking advice from the others, he agrees and gets in the car with her, but Ted admits he cannot let Victoria leave her fiancé at the altar after what Stella did to him.

On the way to Hawaii, Barney is stopped at airport security because of a mysterious box he has placed in his luggage, the contents of which he claims he cannot reveal due to "the Magician's Code".

[6] Entertainment Weekly's Michelle Profis stated the episode does not leave anything for the audience to contemplate before the next season but left some emotional moments such as the baby being named after Marshall's father.

He referred to the episode as a "fake clip show" where "the fake clips here were funnier than anything else in the episode", and remarked that the show could have revealed Robin as Barney's bride with equal impact in the season premiere, thereby making the entire season redundant.