It is from the Movie Grease Soundtrack, “Summer nights” http://www.metrolyrics.com/summer-nights-lyrics-grease.html?ModPagespeed=noscript
Ted always quotes fom movies.