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

seen, carry off pupae of other species, if scattered near their nests, it is possible that such pupae originally stored as food might become developed; and the foreign ants thus unintentionally reared would then follow their proper instincts, and do what work they could.

If their presence proved useful to the species which had seized them — if it were more advantageous to this species, to capture workers than to procreate them — the habit of collecting pupae, originally for food, might by natural selection be strengthened and rendered permanent for the very different purpose of raising slaves. When the instinct was once acquired, if carried out to a much less extent even than in our British F. sanguinea, which, as we have seen, is less aided by its slaves than the same species in Switzerland, natural selection