Faced with a sudden military threat on their journey to the Promised Land, the Israelites find themselves in a moment of deep crisis. The Canaanite enemy launches an attack, emboldened by the recent death of Aaron the High Priest and the subsequent departure of the protective Clouds of Glory that had shielded the nation [מזרחי]. In the midst of this peril, Moses refrains from praying on behalf of the people. His silence stems from a fracture in their relationship; either the Israelites suspect Moses and Eleazar of somehow causing Aaron's death, or they have retreated in fear, demonstrating a lack of trust in God. Consequently, Moses waits for the people to take the initiative to pray and make their own vows [שפתי כהן]. Furthermore, this particular conflict is not destined to be won through open, sweeping miracles led by Moses, but rather through natural providence and the collective power of the nation's own prayers [העמק דבר].
In their distress, the Israelites turn to God with a vow. Their plea reflects a distinct uncertainty regarding the exact identity of the attackers. They ask that if this enemy belongs to the seven Canaanite nations promised to them, God should deliver the attackers into their hands and return any captives that were taken [אור החיים]. However, the people harbor a profound fear that God might withhold victory because the designated time to enter the land has not yet arrived. To avoid conflicting with the Divine timeline and decree, they vow to derive absolutely no personal benefit from the spoils of the war [בכור שור].
Regarding the exact nature of this vow, one perspective suggests it is a promise of total physical devastation—a commitment to ruin, kill, and completely wipe out the enemy settlements and their inhabitants [רלב״ג]. However, the primary approach among commentators is that the vow centers on dedication rather than mere destruction. A sacred vow to God cannot be rooted simply in revenge or devastation; it must involve restricting personal benefit and elevating property to a holy purpose [שפתי חכמים, מזרחי, גור אריה]. Therefore, the commitment ensures that no soldier will take any loot for himself. Instead, all movable property, silver, and gold found within the conquered areas will be dedicated entirely to Heaven [רש״י, רשב״ם, ביאור יש״ר, ביאור שטיינזלץ, העמק דבר]. To achieve this, the people resolve to completely empty the enemy settlements of all valuables, channeling the entirety of the spoils toward God [הכתב והקבלה].
The necessity of framing this dedication as a personal vow arises from a distinct legal challenge. Unlike later conquests where the land is already considered their rightful inheritance, this battle takes place before the territory is conquered. According to Jewish law, a person cannot dedicate property that does not yet belong to them. The only way to consecrate the future spoils is to accept a binding personal vow, obligating themselves to dedicate the wealth immediately upon capturing it [חתם סופר]. This act of dedication also serves as a spiritual remedy. By willingly forfeiting easy profit and directing it toward sacred purposes—such as the creation of Torah scrolls and phylacteries—the people ensure that their remaining possessions will endure and be blessed [תורה תמימה].
Ultimately, God answers their prayers, granting a victory even greater than they requested. He stirs a conflict between the Canaanites and the Amalekites, causing them to inflict heavy casualties upon one another. As a result, the Israelites merely need to march in and take control of the area [פענח רזא]. This triumph, along with the wealth they faithfully dedicated, stands as a lasting milestone, paving the way for the future conquest of the entire Promised Land [רש״ר הירש].