Read all of Numbers 25 through to 31 and it gives an outline of why God had them go to war (yes it was a war ) with the Medianites .
It starts right here ....
Num 25:1 And Israel abode in #tim, and the people began to commit whoredom with the daughters of Moab.
Num 25:2 And they called the people unto the sacrifices of their gods: and the people did eat, and bowed down to their gods.
Num 25:3 And Israel joined himself unto Baalpeor: and the anger of the LORD was kindled against Israel.
Num 25:4 And the LORD said unto Moses, Take all the heads of the people, and hang them up before the LORD against the sun, that the fierce anger of
the LORD may be turned away from Israel.
Num 25:5 And Moses said unto the judges of Israel, Slay ye every one his men that were joined unto Baalpeor.
Num 25:6 And, behold, one of the children of Israel came and brought unto his brethren a Midianitish woman in the sight of Moses, and in the sight of
all the congregation of the children of Israel, who [were] weeping [before] the door of the tabernacle of the congregation.
(Keep reading www.blueletterbible.org...
Num 31:2 Avenge the children of Israel of the Midianites: afterward shalt thou be gathered unto thy people.
Numbers 31: 16Behold, these caused the sons of Israel, through the counsel of Balaam, to trespass against the LORD in the matter of Peor, so the
plague was among the congregation of the LORD.
Evidently the Medianites were corrupting the Israelites with their idolatry worship and whoredoms ........
So it was an act of war
Yes the bible says Vengence is mine (GODS)sayeth the Lord .
He will REPAY (he promises that ) Whatsoever you sow that shall you reap .....what goes around comes around ....
I am pretty sure there is way more to it than meets the eye .
As I have said before ..the NT says that there is a seed of the enemy who sowed seed in the (Earth) ....(I still believe there was some form of human
outside of the garden who Cain went and found a wife from in the land of NOD ) >.. so this seed are the seed of the WICKED ONE (satan) ......they are
not a holy and just godly people ...there only purpose is to frustrait Gods purposes ...by causing his people to worship other gods and get sucked up
into lust and idolatry ..and every ungodly deed imaginable ..so that they will turn away from God and serve other gods and be lost and end up in hell
with them ...(misery loves company )
Mat 13:25 But while men slept, his enemy came and sowed tares among the wheat, and went his way.
Mat 13:26 But when the blade was sprung up, and brought forth fruit,
Mat 13:27 So the servants of the householder came and said unto him, Sir, didst not thou sow good seed in thy field? from whence then hath it
Mat 13:28 He said unto them, An enemy hath done this. The servants said unto him, Wilt thou then that we go and gather them up?
Mat 13:29 But he said, Nay; lest while ye gather up the tares, ye root up also the wheat with them.
Mat 13:30 Let both grow together until the harvest: and in the time of harvest I will say to the reapers, Gather ye together first the tares, and
bind them in bundles to burn them: but gather the wheat into my barn.