"CBS and I are not getting divorced, we are 'consciously uncoupling,'" Ferguson quipped. "But we will still spend holidays together and share custody of the fake horse and robot skeleton, both of whom we love very much."
CBS Entertainment chair Nina Tassler said in a statement that Ferguson "infused the broadcast with tremendous energy, unique comedy, insightful interviews and some of the most heartfelt monologues seen on television."
Ferguson will leave when his contract expires in December.
As for Ferguson's replacement, CBS has already said that it has no plans to hire Chelsea Handler, who is currently shopping for a new network. According to The Hollywood Reporter, Neil Patrick Harris might be interested now that How I Met Your Mother is off the air.
2014: The Year in Fashion [PHOTOS]
Malin Akerman says her son speaks 3 languages