God told him that his descendants would be sojourners in a foreign land, and that the people of that land would enslave them and mistreat them for four hundred years.