The identity of Ted's best friend has been a controversial subject between Marshall, Ted and Barney. Barney and Marshall both claim to be Ted's best friend, and whenever someone comments that Ted's best friend is not them, they tend to act outraged and correct the person who said it.
The most common occurrence of this is when Barney will make a comment stating the he is Ted's best friend, and Ted will try to correct him saying that Marshall is actually his best friend, only for Barney to ignore him and continue on.
The following are episode where an argument/debate over the identity of Ted's best friend has occurred.
Ted makes a comment "your best friend gets engaged, you start thinking about that stuff", referring to Marshall as his best friend. Barney responds by saying "I thought I was your best friend... Ted, say I'm your best friend!", Ted concedes, calling Barney his best friend. Pleased, he introduces Ted to Yasmin.
Ted and Barney try to pick up women in the airport and end up on a plane to Philly. While there Barney has the idea to lick the Liberty Bell. Barney has to remind Ted why he wants to hang out with him so much. "You're my best friend, alright!"
When Ted calls Marshall "my best friend", Barney gasps; Ted quickly says "One of my best friends". Robin later tells Ted that Marshall is "your best friend"; Barney is again outraged, and an exasperated Robin adds "one of your best friends", causing him to smile.
When Barney tells Marshall "I may be your best friend...", Marshall interjects "Ted's my best friend".
Marshall, Ted and Barney argue over who is Marshall's 'best man'.
While Ted is planning Marshall's bachelor party, Barney cant help but interfere. When Marshall is pissed off at him for all the trouble they went through that night, he threatens to un-invite Barney from the wedding only to find out that Barney flew to San Francisco to get Lily back for him. Ted and Barney turn out to be BOTH Marshall's Best Man. Co-Best Men.
At the bar Ted introduces the gang to his newest girlfriend, whose name Future Ted can't remember and instead refers to as "Blah Blah". Embarrassed that she and Ted met online, she makes up a story about how she saw Ted across a crowded room at a cooking class. In order to change the subject, everyone begins to reminisce about how they all met each other, and their stories are told through flashbacks.
Barney corrects Robin when she describes him as Ted's "really good friend".
Barney, Ted, Marshall, and Lily are at the bar, where Barney is being unusually supportive of Ted's marriage. Lily asks Barney why he hasn't tried to stop the wedding, and Barney explains it's a lost cause. He also says he's been working on a problem of utmost importance concerning Ted's marriage: He wants to have sex with Robin again, and the wedding is the best chance to hook up with her. Lily doesn't believe he'll be able to ignore the other women at the wedding.
Barney says that he and Marshall are in a competition for the title of 'Ted's best friend' and that will change when he tells Ted that he has recommended him to design the New GNB Headquarters.
When Bilson fires Ted from designing the new GNB headquarters, he tells Marshall and Barney that Ted's best friend should tell him, to help lessen the blow. They both respond "I have to tell him?" at the same time. This results in one of the rare cases where Marshall and Barney argue against being Ted's best friend, as neither of them want to tell him he's been fired.
Ted learns that the girl Holli he has been flirting with through text messages is actually Barney and Marshall having fun at his expense. To get back at them, he tells "Holli" that he has gay dreams about his best friend. Barney and Marshall both try and convince each other they are the one Ted is dreaming about, and try to convince Ted to tell them who it is.
After Barney says that he would be Ted's best man at his wedding, Ted replies that Marshall probably would be. Barney loudly repeats "As your best man..."
Barney learns from a 'troublemaker' who is at the hotel that Ted is moving to Chicago which opens up a tense conversation between the two.
|Ted:||Thirty, right. You’re right. I guess it’s just, you’re best friend gets engaged—you start thinking about that stuff.|
|Barney:||I thought I was your best friend. Ted, say I’m your best friend.|
|Ted:||You’re my best friend, Barney.|
|Ted:||Marshall, remember this night. When you’re the best man at our wedding and you give a speech, you’re gonna tell this story.|
|Barney:||Why does he get to be the best man? I’M YOUR BEST FRIEND!|
|Ted:||Why ? Why do you need me?|
|Barney:||Because, you’re my best friend, alright ? You don’t have to tell me I’m yours. But the way I see it, we’re a team. Without you, I’m just the dynamic uno. You know what, fine. If you wanna go home… then we’ll go home.|
|Ted:||Fine…we’ll go lick the Liberty Bell !|
|Barney:||Good, ‘cuz we’re here !|
|Barney:||Okay, I got the veil. She wasn't ready to be married. All right, let's talk bachelor party. Are we thinking full-on strip club, or should we rent a room and have a private toy show?|
|Ted:||What did you just say?|
|Barney:||Marshall, I'm your best man.|
|Marshall:||You're not my best man.|
|Barney:||And as your best man, I have to throw you a bachelor party. That's part of being a best friend.|
|Marshall:||You're not my best friend.|
|Marshall:||Barney, I don't have any time for a bachelor party. I've got, like, 18 minutes.|
|Barney:||Marshall I want you to enjoy this moment.|
|Barney:||The last moment of you and I are in competition for the title of 'Ted's best friend'.|
|Ted:||Marshall is my best friend.|
|Barney:||Exactly. Its a tie. But all of that is about to change. Is it correct that you are an architect?|
|Ted:||My best friend would know that, but go on.Woooo!|
|Ted:||You know what? To hell with your dibs. I'm going over there right now and talking to her.|
|Barney:||Oh, yeah, yeah? Be my guest. Fall in love with her. Get married. Just know this: When I step up to make my toast as your best man...|
|Ted:||Actually, Marshall would probably be...|
|Barney:||As your best man...|
|Ted :||Its not until...Monday.|
|Barney:||Monday! So you are gonna just disappear the day after my wedding! After ten years of being best friends...|
|Ted:||Well, actually Marshall is...|
|Barney:||Dont even think about it!|
|Barney:||You are giving me one days notice?|