The Israelites have had a relationship with God since the Beginning. There is a circulatory effect that occurs. They are prosperous when they are close in their relationship with God, and they suffer when they stray away from him. They circle back to God after straying away and realizing they are suffering. They prosper for a while and stray away on their own, time and time again. Then they circle back to God again and become prosperous.
Abram was a descendant of Terah (Genesis 11.26). Abram was is Haran when God came and said to Abram, “Leave your country, your people and your father’s household and go to the land I will show you. I will make you into a great nation and I will bless you; I will make your name great, and you will be a blessing. I will bless those who bless you and whoever curses you I will curse; and all peoples on earth will be blessed through you. (Genesis 11.26-12.3). This is pretty much the beginning of the circulatory affect where God makes his covenant with Abram, promising him great blessings and protection. When Abram was 99 years old God said, “You will be the father of many nations, no longer will you be called Abram, your name will be Abraham for I have made you a father of many nations” (Gen. 17:1-5). Isaac was one of Abram’s sons and Jacob was one of Isaac’s sons and God chose Isaac as the man he would carry out his covenant with. Jacob wrestled with God and then the man said your name will no longer be Jacob, but Israel because you have struggled with God and with men and have overcome (Gen. 32.28)
Joseph, one of the twelve sons of Israel, was sold into slavery to Egypt and his father and brothers followed him there. The Egyptian overlords oppressed the 12 sons of Israel. During this time in their plight the Israelites started to stray away from God, they were starting to lose their faith in the covenant God had promised