According to, following the Jews' escape from Egypt they camped in Rephidim. The battle began with the Amalekites' unprovoked attack against the Jews. Afterwards, Yahweh announced the extermination of the Amalekites and called on Israel to defeat them, stating that Israel would experience peace with their enemies. This was the first of several conflicts over several hundred years between the Amalekites and Jews. Moses urged the faithful to fight and placed his people under the leadership of Joshua. The words, "that will hold up the rod of God," could be an expression of his beliefs about impending victory in the coming battle, since they fought under the banner of God. Moses watched from above. When he held his hands up, Israel gained the military advantage. Whenever he put his hands down, according to the Biblical account, they began to lose. The Bible describes how when Moses became tired, his closest relatives, Hur and Aaron, held up his hands for support. The battle lasted until the evening, ending in victory for the Israelites. The Book of Exodus mentions the curse-punishment thrown at enemies of the chosen people, the Israelites. The Amalekites were to be erased from history. Curses with similar overtones are also recorded in the Book of Jeremiah. After the success of the Israeli military, it erected an altar – Yahweh-Nissi – denoting "The Lord is my banner." The name refers to the sticks held by Moses.
Research
According to some researchers, Rephidim was the only oasis in the region. It was situated in the mountains where nomads brought cattle to drink. When the Israelites traveled into Canaan, they discovered the Amalekites, who inhabited the northern Sinai Peninsula and the Negev. According to William Petri, Amalekites tried to prevent the Israelites from reaching the oasis. Petri's conclusions are based on his research on climate, which, since the days of Moses, remained almost unchanged. Therefore, he concluded that the number of nomads living there for millennia remained at a similar level, around five to seven thousand people. Taking into account the biblical description of the battle, and the description that its final outcome was not decided until the evening, the number of combatants on both sides are assumed to have been close. It is understood that the Israelites had around six thousand people. The clash resulted in the intruders accessing the oasis. Nineteenth-century Bible scholar and commentator Alexander Łopuchin, interpreted Deuteronomy to mean that the Amalekites first laid siege, robbing exhausted travelers who lagged behind the oasis, and then attacked an entire tribe of Israelites. John Van Seters argues that, according to traditional interpretation, a show of hands by Moses was regarded as a sign of prayer; this is significant because the text does not directly mention prayer. Van Seters believed that Moses' gesture, like Joshua's – elevating the javelin – should be understood as the practice of magic, and secondarily as religious. :de:Hans-Christoph Schmitt|Hans-Christoph Schmitt disputes this view, pointing out that such restrictions would be unlikely. In his opinion, parallels should be sought in 1 Samuel 7:2–13, where Israel is victorious thanks to the constant prayer of Samuel.