Basically, since the beginning. While anthropologists and evolutionary
biologists can’t be precise, all available evidence suggests that humans
have understood that there is some relationship between copulation and childbirth since Homo sapiens
first exhibited greater cognitive development, sometime between the
emergence of our species 200,000 years ago and the elaboration of human
culture probably about 50,000 years ago.
-Slate