"Avenge the people of Israel on the Midianites. Afterward you shall be gathered to your people."
▸God commands war against Midian.
God commands war against Midian. This is retribution for the incident in chapter 25 in which Midianite women led Israel into Baal-Peor worship. The announcement that Moses will die after this war is finished is given at the same time. Moses faithfully carries out the command knowing that his own death is coming.