6 And Joshua the son of Nun, and Caleb the son of Jephunneh, which were of them that searched the land, rent their clothes: 7 And they spake unto all the company of the children of Israel, saying, The land, which we passed through to search it, is an exceeding good land. 8 If the LORD delight in us, then he will bring us into this land, and give it us; a land which floweth with milk and honey. 9 Only rebel not ye against the LORD, neither fear ye the people of the land; for they are bread for us: their defence is departed from them, and the LORD is with us: fear them not. 10 But all the congregation bade stone them with stones. And the glory of the LORD appeared in the tabernacle of the congregation before all the children of Israel.
11 And the LORD spake unto Moses face to face, as a man speaketh unto his friend. And he turned again into the camp: but his servant Joshua, the son of Nun, a young man, departed not out of the tabernacle.
17 And when Joshua heard the noise of the people as they shouted, he said unto Moses, There is a noise of war in the camp.
8 Then came Amalek, and fought with Israel in Rephidim. 9 And Moses said unto Joshua, Choose us out men, and go out, fight with Amalek: to morrow I will stand on the top of the hill with the rod of God in mine hand. 10 So Joshua did as Moses had said to him, and fought with Amalek: and Moses, Aaron, and Hur went up to the top of the hill. 11 And it came to pass, when Moses held up his hand, that Israel prevailed: and when he let down his hand, Amalek prevailed. 12 But Moses’ hands were heavy; and they took a stone, and put it under him, and he sat thereon; and Aaron and Hur stayed up his hands, the one on the one side, and the other on the other side; and his hands were steady until the going down of the sun. 13 And Joshua discomfited Amalek and his people with the edge of the sword. 14 And the LORD said unto Moses, Write this for a memorial in a book, and rehearse it in the ears of Joshua: for I will utterly put out the remembrance of Amalek from under heaven. 15 And Moses built an altar, and called the name of it Jehovahnissi: 16 For he said, Because the LORD hath sworn that the LORD will have war with Amalek from generation to generation.