Ted and Robin talk over past relationships on the day of her wedding on How I Met Your Mother. "Sunrise" is the 17th episode of the show's ninth and final season.
Barney: Lesson one, lose the goatee, it doesn't go with your suit. Ted: I'm not wearing a suit. Barney: Lesson two, get a suit. Suits are cool, exhibit A. [points to his own suit] Lesson three, don't even think about getting married til you're thirty.