The gang pulls together to throw Barney a bachelor party on How I Met Your Mother. "The Bro Mitvah" is the 22nd episode of the show's eighth season.
Added:

How I Met Your Mother Season 8 Episode 22 Quotes

Here he is. Just as hot as when his Tiger Beat photo spread gave a young girl the courage to explore the suddenly unfamiliar topography of her changing body...The Karate Kid!

Lily

You are so funny. What's gotten into you? Oh that's right, nothing, ever.

Loretta Stinson