This iconic song was penned in a burst of late-night inspiration.