Numbers 31:7

And they warred against the Midianites, just as the LORD commanded Moses, and they killed all the males.

Surrounding context

31:6 Then Moses sent them to the war, one thousand from each tribe; he sent them to the war with Phinehas the son of Eleazar the priest, with the holy articles and the signal trumpets in his hand.

31:7 And they warred against the Midianites, just as the LORD commanded Moses, and they killed all the males.

31:8 They killed the kings of Midian with the rest of those who were killed--Evi, Rekem, Zur, Hur, and Reba, the five kings of Midian. Balaam the son of Beor they also killed with the sword.

Translation and sources