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

It can be clearly shown that the most wonderful instincts with which we are acquainted, namely, those of the hive-bee and of many ants, could not possibly have been acquired by habit.

It will be universally admitted that instincts are as important as corporeal structures for the welfare of each species, under its present conditions of life. Under changed conditions of life, it is at least possible that slight modifications of instinct might be profitable to a species; and if it can be shown that instincts do vary ever so little, then I can see no difficulty in natural selection preserving and continually accumulating variations of instinct to any extent that was profitable. It is thus, as I believe, that all the most complex and wonderful instincts have originated. As modifications of corporeal structure arise from, and