"How I Met Your Mother" fans -- prepare for a legend-, wait for it ... -dary duet between stars Neil Patrick Harris and Jason Segel.
While taping an episode of the series "Inside The Actors Studio" with cast mates Alyson Hannigan, Cobie Smulders and Josh Radnor, Harris and Segel are asked by a member of the audience to sing the song "Confrontation" from the Broadway musical "Les Miserables." Video of the duet can be viewed below.
Harris voiced the role of Javert, while Segel acted as Jean Valjean from the play. The two sang the song previously on an episode of the Megan Mullally Show back in 2006, according to E! Online.
The sing-off comes as the "How I Met Your Mother" cast prepares to say goodbye to the series, which will end after 9 seasons on CBS on March 31. The show has followed the lives of Ted (Radnor), Robin (Smulders), Marshall (Segel), Lily (Hannigan) and the womanizing Barney (Harris) through many relationship highs and lows in New York City.
A spin-off of the show, titled "How I Met Your Dad," was given the green light for a pilot as a proposed series for the Fall 2014 television schedule. Greta Gerwig was cast as the lead in February 2014. It is unclear if any of the original "How I Met Your Mother" cast members will make appearances in the new show.
Watch Neil Patrick Harris and Jason Segel's rendition of "Confrontation" from "Les Miserables" below.