Lester Cohen / WireImage 1 / 7
Lester Cohen / WireImage 1 / 7

As the "How I Met Your Mother" cast prepares for its show's night's series finale on March 31, they made an appearance on "Inside the Actor's Studio" where a fan asked if Neil Patrick Harris and Jason Segel for a special favor.

PHOTOS: Costars reunited

After the pair briefly sang the Inspector Javier and Jean Valjean duet, the "Confrontation," on the "Megan Mullally Show" in 2006, the fan asked if they would reprise the performance. With almost no hesitation, they broke into the famous Broadway show tune.

PHOTOS: Celebrity bromances

Perfectly executing the wordy duet, the duo brought the house down, as the happy audience gave them a standing ovation.

PHOTOS: Best TV couples ever

The series finale of "How I Met Your Mother" airs Monday, March 31, at 8 p.m. ET on CBS.


Brad Pitt's changing looks

Mark Wahlberg's best shirtless looks

Prince William and Duchess Kate's cutest moments