What to Read Next

How I Met Your Mother Returning For Ninth Season

December 23, 2012
Alyson Hannigan, Neil Patrick Harris, Cobie Smulders, Josh Radnor of CBS's 'How I Met Your Mother'
 -- Getty Images
Alyson Hannigan, Neil Patrick Harris, Cobie Smulders, Josh Radnor of CBS's 'How I Met Your Mother' -- Getty Images

The CBS show will be back for a ninth season, according to Deadline.

A deal was reached on Friday after series star Jason Segel agreed to return, the website reported.

PLAY IT NOW: 2012 Creative Emmys: Neil Patrick Harris - How Was Cobie Smulders’ Wedding?

The show had been previously considered dead in the water as Segel, whose film career has blossomed greatly since "HIMYM's" 2005 premiere, had "decided to bail and leave the cast hanging," Deadline reported.

However, the "Muppets" star "turned around today at the last second," according to the website.

VIEW THE PHOTOS: Mahna Mahna… ‘The Muppets’ Star Jason Segel

Alyson Hannigan, who plays Segel's on-screen wife on the sitcom, Tweeted about the cast's return, posting a link to the story with a comment reading, "I'm happy the world(s) didn't end."

WATCH: Alyson Hannigan Dishes On Her Pregnancy

In mid-September, "HIMYM" star Neil Patrick Harris told Access Hollywood he didn't anticipate the show lasting past the eighth season (which premiered on September 24).

VIEW THE PHOTOS: Funny Ladies! The Glorious Women Of TV Comedy

"Our contracts end at [Season] 8, so it's one of those, you know, if they wanna do 9, they're welcome to, but we have a lot of other things [going on]," Neil Patrick told AccessHollywood.com's Laura Saltman at the time. "Cobie [Smulders] has got 'The Avengers' that just made a billion dollars, Jason [Segel] makes a ton of movies, I'm anxious to move East and Josh [Radnor] is directing and acting in movies as well. So, we all are anxious to move forward."

WATCH: Neil Patrick Harris Discusses End Of 'How I Met Your Mother'

VIEW THE PHOTOS: The Always Debonair Neil Patrick Harris

The actor said the decision would ultimately depend on salary.

"I think the only way I think a Season 9 or any longer would happen would be [if it were] financially right -- that's the reality of it," he said. "We love the show, we love doing it - eight years is a long time and we're as happy a family as we've ever been."

VOTE: Are you excited for a ninth season of "How I Met Your Mother"?

-- Erin O'Sullivan

Copyright 2012 by NBC Universal, Inc. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

VA Mortgage Rates In 2016

VA Rates as Low as 2.75% (3.028% APR) 15 Year Fixed. Exclusive For Veteran & Military Takes 1 Min!

Read This Before You Buy Medigap Plan F

Plan F is the most popular Medicare Supplement plan, but there's another Medigap option you should consider.

Starwood Credit Card

Earn 25,000 Bonus Starpoints®! Use toward Award Nights or Flights.

How To Make Sagging Skin Look Tight and Lifted

[Watch] The easy and effective way consumers across the country are improving the look of their wrinkled and sagging skin without cosmetic procedures.

Would You Pay $99 to Take a Stroke Off Every Hole?

With the xE1 Wedge, you ll hit higher, softer, more consistent shots - closer to the hole every single time. Click here to watch a video review now

Banks Are Worried Homeowners Will Do This.

Homeowners are surprised and furious. If you owe less than $625,000 on your home, you better read this.

The 2016 Mazda6

A 2015 IIHS Top Safety Pick. Request a quote on the 2016 Mazda6.

Is your insurance comp Laughing Behind Your Back?

New Studies Show that if you drive less than 55 miles a day you can save a ton on auto insurance.

Reconnect With Your High School Friends

Classmates® has the largest directory of high school class lists. Remember the good times and reconnect to create new memories.

What Oil's New Replacement Means for Saudi Arabia

A stunning breakthrough in chemical engineering has unleashed a massive supply of fuel that could hand the United States 100% energy independence.

Switch and save!

Switch to Progressive and you could save an average of $548.

Hilton HHonors™ Card

Earn 40,000 Hilton HHonors™ Bonus Points. Apply for Your Card Today.

Toddler tantrum email series for moms

We get it. We’ve been there. Sign up for our email track for advice on how to handle different situations that may arise with your little one.

Insane Navy Seal Flashlight, should it be banned?

The Military has recently released technology that is now available to the public. Get yours before they run out - Limited Supply!