The victorious return of the Israelite vanguard from the war against Midian was met with strict instructions regarding purity and separation. Unlike previous military campaigns against kings like Sihon and Og, which involved the entire nation and thus allowed a general exemption for corpse impurity, the Midianite conflict was fought by a select group of twelve thousand soldiers. Furthermore, this campaign involved raiding homes and gathering spoils rather than fighting strictly in an open field, triggering the full severity of the purity laws [פני דוד, הטור הארוך, פענח רזא, חזקוני]. Consequently, the returning soldiers were required to remain outside the camp. Although legally permitted to enter the Levite encampment while impure, they were excluded from the Tabernacle courtyard out of reverence for the Divine Presence dwelling among the people [רבנו בחיי, אבן עזרא, מזרחי]. Additionally, as a large group carrying severe impurity, they posed a significant risk to the non-combatants. Sitting outside the regular Israelite camp effectively prevented the spread of impurity to the general public [הטור הארוך, העמק דבר, בכור שור, חזקוני].
The laws governing this purification closely equate the act of killing a person with physically touching a corpse. The primary approach among commentators is that a soldier who takes a life contracts impurity because his weapon, such as a sword, absorbs the impurity and essentially becomes like the corpse itself. Therefore, even if a warrior never made direct physical contact with a body, or if he fired an arrow from a distance, he immediately contracts a seven-day impurity simply by being connected to the lethal weapon [רש״י, רבנו בחיי, שפתי חכמים, מזרחי, העמק דבר]. Alternatively, others suggest that this rule expands the laws of carrying a deceased body. In this view, even if the killing was done with a wooden implement that does not absorb impurity, the soldier becomes impure because the weapon moved or supported the weight of the casualty [רמב״ן].
To achieve purity, the soldiers had to undergo a process of sprinkling with water mixed with the ashes of the Red Heifer, the standard procedure for those exposed to the dead [רש״י, רבנו בחיי, שטיינזלץ]. This requirement highlights a specific nuance in the laws of purity regarding non-Jewish corpses. While they do not transmit impurity to someone simply sharing the same roof—often referred to as tent impurity—they absolutely do transmit impurity through direct contact or carrying, which necessitated the sprinkling process [רש״י, רבנו בחיי, תורה תמימה, שפתי חכמים, חזקוני, מלבי״ם]. This distinction stems from the fact that the biblical terminology relating to tent impurity refers specifically to the Israelites, reflecting their unique spiritual elevation and a soul distinct from the purely material realm [גור אריה].
The requirement to purify the captured Midianites prompted discussion, as non-Jews generally do not contract ritual impurity. One explanation is that the obligation did not apply to the physical bodies of the captives at all, but rather to their clothing and leather belongings that had come into contact with the dead. These items had to be purified to ensure they would not contaminate the Israelites [רמב״ן, שד״ל, הטור הארוך]. Another perspective suggests that the command did apply to the captives themselves, but only upon their conversion. Once the captives entered the covenant and became part of the Israelite nation, they became subject to the laws of purity and required the sprinkling process to cleanse the impurity that had attached to them previously [רש״י, רבנו בחיי, תורה תמימה, צפנת פענח, רש״ר הירש, ברטנורא, מלבי״ם, ברכת אשר]. Finally, an additional view proposes that God simply enacted a special, unique law for these specific captives, causing them to contract impurity from the Midianite casualties exactly like the Israelites, since they were now being brought into the community [רלב״ג].