God told him that his descendants would be foreigners in a strange land, and they would be enslaved and mistreated four hundred years.