Then the children of Israel did evil in the sight of the LORD. So the LORD delivered them into the hand of Midian for seven years, and the hand of Midian prevailed against Israel. Because of the Midianites, the children of Israel made for themselves the dens, the caves, and the strongholds which are in the mountains. So it was, whenever Israel had sown, Midianites would come up; also Amalekites and the people of the East would come up against them. Then they would encamp against them and destroy the produce of the earth as far as Gaza, and leave no sustenance for Israel, neither sheep nor ox nor donkey. For they would come up with their livestock and their tents, coming in as numerous as locusts; both they and their camels were without number; and they would enter the land to destroy it. So Israel was greatly impoverished because of the Midianites, and the children of Israel cried out to the LORD.
And it came to pass, when the children of Israel cried out to the LORD because of the Midianites, that the LORD sent a prophet to the children of Israel, who said to them, “Thus says the LORD God of Israel: ‘I brought you up from Egypt and brought you out of the house of bondage; and I delivered you out of the hand of the Egyptians and out of the hand of all who oppressed you, and drove them out before you and gave you their land. Also I said to you, “I am the LORD your God; do 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 tree which was in Ophrah, which belonged to Joash the Abiezrite, while his son Gideon threshed wheat in the winepress, in order to hide it from the Midianites. And the Angel of the LORD appeared to him, and said to him, “The LORD is with you, you mighty man of valor!”
Gideon said to Him, “O my lord, if the LORD is with us, why then has all this happened to us? And where are all His miracles which our fathers told us about, saying, ‘Did not the LORD bring us up from Egypt?’ But now the LORD has forsaken us and delivered us into the hands of the Midianites.”