[Flashback]
Marshall: So when Lily and I get married... who gonna get the apartment?
Ted: Wow... that's a tough one. Y'know who I think could handle a problem like that?
Marshall: Who?
Ted: Future Ted & Future Marshall.
Marshall: Totally. Let's let those guys handle it.
[Present Day]
Ted: Dammit, Past Ted!
Marshall: So when Lily and I get married... who gonna get the apartment?
Ted: Wow... that's a tough one. Y'know who I think could handle a problem like that?
Marshall: Who?
Ted: Future Ted & Future Marshall.
Marshall: Totally. Let's let those guys handle it.
[Present Day]
Ted: Dammit, Past Ted!
[Flashback]
Marshall : So when Lily and I get married... who gonna get the apartment?
Ted : Wow... that's a tough one. Y'know who I think could handle a problem like that?
Marshall : Who?
Ted : Future Ted & Future Marshall.
Marshall : Totally. Let's let those guys handle it.
[Present Day]
Ted : Dammit, Past Ted!
http://www.tv-quotes.com/shows/how-i-met-your-mother/quote_4933.html