 Similar treatment, at Yahweh's command, was given to the people under Og king of Bashan.Moses also recounts how God destroyed the followers of Baal-Peor, and threatens to destroy the Israelites if they return to idolatry.Similar threats of destruction for disobedience, or idolatry more specifically, can be found in Deuteronomy 6, 8, 11.