There has been a slew of phenomenal sitcoms and single-camera comedies so far throughout the 21st century, from the end of the phenomenon that is Friends, to the massively underrated Scrubs, to sensations like The Office. Few are as successful, as popular, or as rewatched by its fans than mixed bag of a final season.

RELATED: How I Met Your Mother: The Best (& Worst) Trait Of Each Main Character

The show's main characters are a huge part of what has made it so beloved over the years, with each of them having their fair share of iconic quotes throughout the nine seasons. That includes their first line in season one to their last in the show's controversial finale.

Ted's Kids

Ted's children sitting on the couch on How I Met Your Mother

Luke: "Are we being punished for something?" - "Call her!"/Penny: "Yeah, is this gonna take a while?" - "Great!"

Ted's kids are the ones being subjected to Ted's long, long story about how he met their mother, with the two popping up in many episodes as they listen to their father.

Each of the two's first words comes after Ted explains that he is about to tell them a story at the beginning of the first episode, and it is fair to say they were not overly enthusiastic, which is understandable since he told the story for nine years. Their last lines come at the end of the finale as they are getting their father to call Robin and ask her out, with Ted tentatively agreeing and the controversial, if not hated, final moments of the series finale following.

Tracy McConnell

Tracy meets Ted in How I Met Your Mother Tracy Series Finale

"One ticket to Farhampton, please." - "Hi."

The mother in question was speculated about and anticipated for so long in the show before finally revealing herself properly in the season eight finale "Something New."

RELATED: How I Met Your Mother: 5 Characters We'd Want To Be Friends With (& 5 We Wouldn't)

Her first appearance, played by Cristin Milioti, is very brief as she closes out season eight buying her train ticket to the place where she would meet Ted and the gang, Farhampton, the location of Barney and Robin's wedding. Her final line comes in the finale and tops off a back and forth with Ted, which sees the two hit it off and form an instant connection. That sweet moment is hurt by the nature of the finale and the fact that she sadly es away, making way for Ted and Robin to reignite their romance.

Lily Aldrin

Screenshot How I Met Your Mother Lily Marshall Season Nine Finale

"Ugh, I'm exhausted. It was finger painting day at school, and a five-year-old boy got to second base with me!" - "It was a long, difficult road. Thank God we finally got here."

The mother of the group, and a character with an incredibly kind, loving demeanor hiding a scary, manipulative side, is Lily Aldrin, a constant throughout the show, absent for only a short while when she and Marshall were on a break.

Like everyone on the list except Tracy, Lily's first line comes in the first episode as she comes home from work and announces to Marshall what she has gone through that day. It's the signature comedy she'd become known for and lays out her career. Lily's final words are far more emotional in the finale, as she talks to the gang in MacLarens for the last time, as she toasts, teary-eyed to her friends.

Marshall Eriksen

Lily and Marshall in How I Met Your Mother

"Will you marry me?" - "Just... All kinds of stuff."

Lily's long-time love, Marshall, is probably the most grounded and overall nicest member of the gang for the nine seasons and provides a lot of brilliance and humor over the years.

Marshall's first proposal is not directed at Lily but rather at his best friend Ted as he plans and prepares for proposing to Lily later in the episode, a fitting opening gag for the pair. Like Lily, Marshall's last line is a far more emotional one in the gang's final get-together. It comes in MacLarens as he turns to the table of young people behind them, asking if they know what happened at that bar, a special place for the gang and for fans of the show.

Robin Scherbatsky

Screenshot How I Met Your Mother Robin Series Finale Talking To Television

"Let me guess, Ted?" - "Television dis... oh for Pete's sake."

Ex-wife and long term love interest of Barney, the obsession of Ted, and the best friend of Lily, Robin Scherbatsky was How I Met Your Mother. She was also a controversial part, not down to her, but simply the nature of the finale in which it is revealed the entire show was a ploy for Ted and Robin to get together once again.

RELATED: 10 Most Questionable Life Choices Characters Made In How I Met Your Mother

Robin's introduction in the pilot was hand in hand with the iconic "Have you met Ted?" game, with Barney hitting Robin with this line and introducing the two for the first time, leading to nine years of obsession, friendship, love, and controversy. Robin does not say anything in the final moments when Ted holds the blue french horn to her; however, she does speak just before that the last words of the show with her 2030 technology not understanding her voice commands, prompting her to go to the window and see Ted, akin to the start of their romance.

Barney Stinson

Screenshot How I Met Your Mother Barney Season Nine Finale

"Hey, so you know how I've always had a thing for half-Asian girls?" - "Daddy's home."

There is no doubt that Barney Stinson is the most iconic character to come out of the show, beloved by fans, with a lot of growth and hilarious moments weaved in some fantastic storylines. However, his first line of the show is racially insensitive in regards to Lebanese women and reveals how very far he has to go in of character evolution.

As for his last, apart from a "Here, here!" from the gang as a whole, Barney's final line comes in a conversation with Robin as he talks about his daughter, and he says another iconic line. However, this time it has a much different meaning as Barney seems to have moved on from his self-absorbed playboy ways, fully focused on his love for his daughter.

Ted Mosby

Ted standing outside Robin's window lifting a blue french horn

"Kids, I'm gonna tell you an incredible story, the story of how I met your mother." - "Or..."

Ted Mosby is one of the most controversial main characters in sitcom history, being unbelievably hated by many of the show's fans for his lack of development, role in the finale, and his being a regularly bad person in general at times.

Nevertheless, he is the show's main character, and his first line comes in the opening moments of the first episode, with the voice of older Ted [Bob Saget] telling his kids to prepare for the long journey ahead. His last line is also from future Ted (this time as Josh Radnor) when his kids attempt to convince him to call Robin, which he is a bit hesitant about. In typical Ted fashion, he decides against phoning her and instead goes to her apartment with the famous blue french horn.

NEXT: How I Met Your Mother: Why Barney Is Actually The Main Character