When Barney is telling Quinn his whole history with Robin, he says Ted was hit by a bus, but in the episode 320 : Miracles, Barney is the one who was hit by a bus, not Ted.
Robin didn't go to Brazil, actually she went to Argentina (Buenos Aires), at the end of season two
The final song played while Ted is at Farmhampton is "The Funeral" by "Band of Horses".
Barney Stinson: "Seven years ago when Marshall and Lily got engaged Ted saw Robin across a crowded room and I said "oh yeah you just know she likes it dirty," but Ted really liked her so we played "Haaave You me Ted?" They went to dinner, he walked her home, should have kissed her, didn't, lame. So he stole the Smurf penis, went back to her place, should have kissed her, didn't, lame. He threw three parties, they kissed on the roof but decided to be friends, lame. Then Ted wanted to take Robin to a wedding, she couldn't go, he went alone and met Victoria. Didn't kiss her either, lame. Not a great closer Ted. Then he finally kissed her, they started dating, she went to Germany. Ted kissed Robin, lost Victoria, Ted did a rain dance, got Robin. Ted and Robin broke up, Robin moved to Brazil came back with a Latin stud. Ted got jealous, got a tramp stamp, not really relevant to the story I just like mentioning it as much as possible. I hooked up with Robin, Ted and I stopped being friends, Ted got hit by a bus we made up…Robin and I started dating and I got fat her hair fell out. We broke up, Robin dated Don, I dated Nora. I cheated on her with Robin, I dumped Nora. Robin dated Kevin but not for long and then I met you and you took my Grandpa's watch, but I fell in love with you anyway and you let me fart in front of you and I asked you to marry me and you said yes so we came over here to meet little Marvin and that's everything. Also I went on the Price Is Right and I won a dune buggy."
Air date: Portugal: December 25, 2012 on FOX
International Airdates: Canada: September 24, 2012 on Citytv; United Kingdom: January 31, 2013 on E4; Germany: April 17, 2013 on ProSieben