Bamidbar31:50

וַנַּקְרֵב אֶת־קָרְבַּן יְהוָה אִישׁ אֲשֶׁר מָצָא כְלִי־זָהָב אֶצְעָדָה וְצָמִיד טַבַּעַת עָגִיל וְכוּמָז לְכַפֵּר עַל־נַפְשֹׁתֵינוּ לִפְנֵי יְהוָה׃

And we have brought the Eternal's offering, what each man found of articles of gold: armlets, and bracelets, rings, earrings, and pendants, to make atonement for our souls before the Eternal."

Bamidbar 31:50

וַנַּקְרֵב אֶת־קָרְבַּן יְהוָה

Bamidbar / Numbers 31:50

וַנַּקְרֵב אֶת־קָרְבַּן יְהוָה אִישׁ אֲשֶׁר מָצָא כְלִי־זָהָב אֶצְעָדָה וְצָמִיד טַבַּעַת עָגִיל וְכוּמָז לְכַפֵּר עַל־נַפְשֹׁתֵינוּ לִפְנֵי יְהוָה׃

And we have brought the Eternal's offering, what each man found of articles of gold: armlets, and bracelets, rings, earrings, and pendants, to make atonement for our souls before the Eternal."

Pshat פְּשָׁט

Atonement after victory

Rashi: the ornaments of the Midyanite women atone for the thoughts of the heart. Chizkuni: before the soldiers were counted they made a vow, so that no plague would strike them, as with the census in the wilderness. Sforno: atonement for not stopping the sinners at Peor. Netziv: they wanted to make vessels for the altar from the gold, so Moshe's (Moses') consent was needed.

How Rashi, Chizkuni, Sforno, and Haamek Davar explain it

Remez רֶמֶז

Two wars

Rabbeinu Bahya: each ornament is named by its place on the body, and the kumaz was worn "at the place of lewdness". Malbim: this gift stopped the death that rules in war. But the words "not one is missing" also speak of an inner war: in the body, the "little city", the mind fights the animal passions. The animal did not overcome the man, and still they atone for thoughts that only the Eternal sees.

How Rabbeinu Bahya and Malbim explain it

Drash דְּרָשׁ

No sin, but thoughts

Midrash Lekach Tov: Moshe (Moses) asked the officers whether they had sinned with the daughters of Midyan. They answered: not one of us sinned, but we did not escape thoughts. So they were all righteous. The Torah sets outer and hidden ornaments side by side to teach: whoever gazes even at a woman's little finger is as if he looked at her private place, and in the end he comes to sin.

How Midrash Lekach Tov explain it

Sod סוֹד

A find beyond merit

Sefat Emet: the victory over Midyan was "the Eternal's vengeance", help from above beyond the people's merit. So the spoil is called a find and needs repair through tribute. The officers, great men, understood this by themselves. And the words "took the count (lit. lifted the head) of the men under our hand" teach: the powers of the head must not run ahead of the work of the hands, as the hand tefillin is put on before the head tefillin.

How Sefat Emet explain it