Lily goes into labor while Marshall and Barney are in Atlantic City. On Barney's wedding day, the friends remember the time they encouraged Ted to go after the one that got away.