Numbers 31:42

And of the children of Israel’s half, which Moses divided from the men that warred,

Numbers 31:42 stands within the record of Israel's war against the Midianites. That conflict was not a war of conquest or plunder but a divinely commanded act of judgment. It was directed against those who had deliberately led Israel into sin.