Despite having multiple options, Ted still manages to make the wrong choice in his date for the wedding on How I Met Your Mother. "Knight Vision" is the sixth episode of the show's ninth season.
Added:

How I Met Your Mother Season 9 Episode 6 Quotes

Every hookup at a weekend wedding is decided at Friday Night Drinks. Get stuck with the wrong girl, the only action you'll be getting all weekend is a self five and I don't mean the cool kind.

Barney

Reverend? More like Neverend. Prayer Five!

Barney