Background
The Midianites
Background to Numbers 25 and 31
The Midianites descended from Abraham through his wife Keturah (Gen 25:1–2). They were desert people who moved through the lands east and south of Canaan, trading and herding.
Moses knew them well. When he fled Egypt he lived in Midian and married Zipporah, daughter of Jethro, a priest of Midian (Exod 2:15–21), and Jethro later gave him wise counsel (Exod 18). Hobab the Midianite was asked to guide Israel in the wilderness (Num 10:29–32).
But some Midianite leaders joined Moab against Israel. Their elders helped hire Balaam (22:4, 7), and on his advice their women led Israel into idolatry and immorality at Peor (25:1–18; 31:16). For this the LORD sent Israel to war against Midian (ch. 31). In the days of the judges Midian oppressed Israel again until God raised up Gideon (Judg 6–8).
In Scripture
Numbers 22:4–7; 25:6–18; 31