On The Origin of Species by Charles Darwin Chapter 6 Page 83

Organs now of trifling importance have probably in some cases been of high importance to an early progenitor, and, after having been slowly perfected at a former period, have been transmitted to existing species in nearly the same state, although now of very slight use; but any actually injurious deviations in their structure would of course have been checked by natural selection. Seeing how important an organ of locomotion the tail is in most aquatic animals, its general presence and use for many purposes in so many land animals, which in their lungs or modified swim-bladders betray their aquatic origin, may perhaps be thus accounted for.

A well-developed tail having been formed in an aquatic animal, it might subsequently come to be worked in for all sorts of purposes, as a fly-flapper, an organ of prehension, or as an