The people of Israel did what was evil in the sight of the LORD, and the LORD gave them into the hand of Midian seven years. And the hand of Midian overpowered Israel, and because of Midian the people of Israel made for themselves the dens that are in the mountains and the caves and the strongholds. For whenever the Israelites planted crops, the Midianites and the Amalekites and the people of the East would come up against them. They would encamp against them and devour the produce of the land, as far as Gaza, and leave no sustenance in Israel and no sheep or ox or donkey. For they would come up with their livestock and their tents; they would come like locusts in number—both they and their camels could not be counted—so that they laid waste the land as they came in. And Israel was brought very low because of Midian. And the people of Israel cried out for help to the LORD.
When the people of Israel cried out to the LORD on account of the Midianites, the LORD sent a prophet to the people of Israel. And he said to them, "Thus says the LORD, the God of Israel: I led you up from Egypt and brought you out of the house of slavery. And I delivered you from the hand of the Egyptians and from the hand of all who oppressed you, and drove them out before you and gave you their land. And I said to you, 'I am the LORD your God; you shall not fear the gods of the Amorites in whose land you dwell.' But you have not obeyed my voice."
Now the angel of the LORD came and sat under the terebinth at Ophrah, which belonged to Joash the Abiezrite, while his son Gideon was beating out wheat in the winepress to hide it from the Midianites. And the angel of the LORD appeared to him and said to him, "The LORD is with you, O mighty man of valor." And Gideon said to him, "Please, my lord, if the LORD is with us, why then has all this happened to us? And where are all his wonderful deeds that our fathers recounted to us, saying, 'Did not the LORD bring us up from Egypt?' But now the LORD has forsaken us and given us into the hand of Midian."