Profound understanding of human psyche can be found in texts/anecdotes all way back to ancient Egypt - down to understanding the artifice of religion itself as a population control tool. I bet this kind of complete understanding of human behavior goes back way beyond recorded history