Numbers 14:39-45 - Israel Defeated In Battle
39 And Moses told these sayings unto all the children of Israel: and the people mourned greatly. 40 And they rose up early in the morning, and went up into the top of the mountain, saying, Lo, we are here, and will go up unto the place which the LORD has promised: for we have sinned.
41 And Moses said, Why now do you transgress the commandment of the LORD? but it shall not prosper. 42 Go not up, for the LORD is not among you; that you be not smitten before your enemies. 43 For the Amalekites and the Canaanites are there before you, and you shall fall by the sword: because you have turned away from the LORD, therefore the LORD will not be with you.
44 But they presumed to go up unto the mountaintop: nevertheless the ark of the covenant of the LORD, and Moses, departed not out of the camp. 45 Then the Amalekites came down, and the Canaanites who dwelt in that hill country, and struck them, and routed them, even unto Hormah.