I think I remember it - many many moons ago. A more recent one is by Alan Dean Foster - aliens visit a future Earth to recruit humanity for a war. The aliens offer transport but the humans say 'no thanks' and the planet sprouts engines to follow the ships - bringing the Moon with it. Which, of course, leaves the aliens wondering what they're going to do with the humans once the war is over.