"Last Forever" is the series finale of the CBS sitcom How I Met Your Mother. The episode serves as the 23rd and 24th episodes of season nine, and the 207th and 208th episodes overall; the episode's two parts are classified as two separate episodes. It aired on March 31, 2014.
"Last Forever" received a polarized response from fans and TV critics, primarily in regard to the final twist ending, the relationship between Ted and Robin, and the fate of the series' titular mother. Many viewers expressed considerable disdain for the disregard for character development and said the episode rendered the whole season pointless, while some praised it for tying up loose ends; an alternate ending would later be included in the ninth season's home media release.
Plot
Part 1
In a flashback to September 2005, Ted (Josh Radnor), Marshall (Jason Segel), Lily (Alyson Hannigan) and Barney (Neil Patrick Harris) accept Robin (Cobie Smulders) into their group. Lily, optimistic about Robin's friendship, decrees that Ted and Barney cannot hook up with Robin unless they marry her, and Barney scoffs at the idea.
In May 2013, Ted discusses his move to Chicago with Marshall and Lily at Barney and Robin's wedding reception. Meanwhile, Barney recognizes the bass player — already introduced in previous episodes as the Mother (Cristin Milioti) — as the woman who advised him to pursue Robin. He approaches Ted with the intent to introduce her to him, but Ted declines the idea. After the group sadly bids Ted farewell, he goes to the Farhampton train station, where an elderly lady (Judith Drake) asks Ted many questions about destiny and spots the Mother standing nearby. Ted insists he cannot talk to her because he's moving. The next night, Marshall and Lily are surprised to see Ted sitting at their table in MacLaren's. He tells them that he met a girl, of whom they approve after finding out that she is the bass player from the wedding.
In 2015, Ted, now engaged, meets Robin and Barney at MacLaren's to discuss wedding ideas. As Robin goes to buy drinks, Barney admits their marriage is suffering because of Robin's rising career, which requires her to travel frequently. The Mother arrives and tells Ted they have to delay their wedding because she is pregnant.
In May 2016, Ted and the Mother host a get-together with the rest of the gang. Marshall is miserable at his new job, having been forced to return to being a corporate lawyer. Barney and Robin reveal that after three years of marriage, they have divorced. The mood turns positive when Barney realizes that Marshall and Lily are expecting their third child, but Lily is worried about the group breaking apart. Together they promise they will all be there for the big moments and will remain friends.
In October 2016, Marshall and Lily decide to move out of their old apartment and put together a final Halloween roof party. Robin is sad to see Ted and the Mother with matching "hanging chad" outfits, alongside Barney who has returned to his womanizing ways. She decides to leave and confesses to Lily that she cannot be in the group any longer as she has outgrown them and still has unresolved feelings for Ted, which devastates Lily.
Part 2
In 2018, Barney gets ready for another night at MacLaren's, even though Ted and Lily, both being parents, are not intending to stay out late. Marshall arrives and announces he is replacing a retiring judge in Queens, which prompts a celebration. When Barney attempts to score with a young woman, Lily blasts him for fully regressing into his previous self. After Barney defends his behavior by telling her that he will never make it work with anyone except Robin, Lily relents and Barney leaves to enjoy his night.
In 2019, Ted, the Mother, Marshall and Lily are at Robots Versus Wrestlers. A depressed Barney shows up to say that while he recently completed a "perfect month" using a new Playbook, the last woman is pregnant with his child. Sometime later, Ted runs into Robin, now a famous news reporter, while showing Penny the GNB building he designed. Marshall, Lily, and Ted gather at the birth of Barney's daughter, Ellie. Despite his initial misgivings, Barney is moved to tears.