Israel’s 40 Years in the Wilderness: Why Did They Wander?

by Joshua Andreasen | Founder of Unforsaken

At Kadesh Barnea, the Israelites refused to enter the land God had promised them. These were the people He had freed from Egypt, yet they accused Him of bringing their families out to die and proposed returning to slavery. Their forty years in the wilderness cannot be understood apart from that rebellion and the judgment that followed. I also see God sustaining the nation and keeping His promise to their children.

From Egypt to Kadesh Barnea

Israel had not wandered into the wilderness because Moses lost his way. God brought them out of Egypt, chose their route, and went before them. His decision to take the longer road came before the rebellion that later kept a generation out of Canaan.

Then it came to pass, when Pharaoh had let the people go, that God did not lead them by way of the land of the Philistines, although that was near; for God said, “Lest perhaps the people change their minds when they see war, and return to Egypt.” So God led the people around by way of the wilderness of the Red Sea. And the children of Israel went up in orderly ranks out of the land of Egypt.

Exodus 13:17-18

The nearer road passed through Philistine territory. God knew that encountering war there might send the newly freed Israelites back to Egypt, so He led them toward the Red Sea by the wilderness route. The cloud by day and fire by night made His guidance visible throughout the journey. Moses carried Joseph’s bones as well, fulfilling an oath Joseph had required because he believed God would bring Israel out (Exodus 13:19-22). Even those bones testified to a promise that slavery had not canceled. The studies on the Exodus and the pillar of fire and cloud examine the deliverance and God’s continuing guidance more fully.

God also had work for Israel to do before they entered Canaan. Israel crossed the sea, received food and water from God, fought Amalek, and reached Sinai. There He gave them His law, established His covenant with the nation, and directed the building of the tabernacle. A census organized the people before they departed toward the land. These early stages belong within the forty-year wilderness period; the count does not begin only after the spies returned.

Israel’s repeated complaints began well before the spies’ expedition. After singing beside the sea, the people complained about the bitter water at Marah. God supplied manna when they needed food, but at Rephidim they quarreled with Moses over water and questioned whether the LORD was among them. At God’s command, Moses struck the rock at Horeb, and water came out. The place was named Massah and Meribah for their testing and contention: they had challenged God and quarreled with Moses despite His repeated care.

The same resistance continued after Sinai. Fire brought judgment at Taberah, the people gave themselves over to craving at Kibroth Hattaavah, and even Miriam and Aaron opposed Moses. They repeatedly resisted the God whose deliverance and provision they had witnessed. Their conduct should not be confused with an anguished prayer or an honest question brought to Him in distress. Scripture records faithful people praying that way.

Their longing for Egypt shows how selective that resistance could become. They remembered its food while leaving forced labor and the murder of their sons out of the picture. The freedom God had given them began to look less appealing than the place He had rescued them from. I need to recognize the same danger when familiar bondage starts to seem attractive: remembering its comforts while forgetting its cost makes a return easier to justify.

The Rebellion That Brought the Forty-Year Sentence

At Kadesh, twelve leaders returned after spending forty days exploring Canaan. Their report confirmed the land’s abundance, but they disagreed about whether Israel could possess it.

Then Caleb quieted the people before Moses, and said, “Let us go up at once and take possession, for we are well able to overcome it.” But the men who had gone up with him said, “We are not able to go up against the people, for they are stronger than we.” And they gave the children of Israel a bad report of the land which they had spied out, saying, “The land through which we have gone as spies is a land that devours its inhabitants, and all the people whom we saw in it are men of great stature. There we saw the giants (the descendants of Anak came from the giants); and we were like grasshoppers in our own sight, and so we were in their sight.”

Numbers 13:30-33

The fruit the spies carried back supported their report of an abundant land. The fortified cities and formidable inhabitants, including Anak’s descendants, were also real (Numbers 13:25-29). Caleb urged Israel to enter and take possession, but the ten who opposed him went beyond describing the obstacles. They declared that the nation could not overcome them, effectively asking the people to reject God’s command on the strength of their assessment.

Joshua and Caleb understood those obstacles in light of the LORD’s promise. The God who had brought Israel out of Egypt could give them Canaan; they were not being asked to conquer it by their own strength. The other spies treated Israel’s military weakness as the deciding consideration. By describing themselves as grasshoppers beside their enemies, they helped turn the camp’s attention away from God’s demonstrated power and toward defeat.

But Joshua the son of Nun and Caleb the son of Jephunneh, who were among those who had spied out the land, tore their clothes; and they spoke to all the congregation of the children of Israel, saying: “The land we passed through to spy out is an exceedingly good land. If the LORD delights in us, then He will bring us into this land and give it to us, ‘a land which flows with milk and honey.’ Only do not rebel against the LORD, nor fear the people of the land, for they are our bread; their protection has departed from them, and the LORD is with us. Do not fear them.” And all the congregation said to stone them with stones. Now the glory of the LORD appeared in the tabernacle of meeting before all the children of Israel.

Numbers 14:6-10

That night the congregation wept and accused God of bringing their families out to be killed. Their proposed solution was to choose a leader and return to Egypt. Moses and Aaron fell on their faces before the assembly (Numbers 14:1-5). Joshua and Caleb tore their clothes and pleaded with the people, reminding them that the LORD was with them and warning them against rebellion.

Instead of listening, the congregation called for them to be stoned. I cannot read that response as ordinary apprehension about a dangerous battle. The people were rejecting God’s promise, proposing a return to slavery, and threatening the men who urged them to obey. Then the LORD’s glory appeared at the tabernacle.

God spoke of destroying the people and making a new nation from Moses’ descendants. Moses interceded for the very people who had rejected his leadership.

“And now, I pray, let the power of my Lord be great, just as You have spoken, saying, ‘The LORD is longsuffering and abundant in mercy, forgiving iniquity and transgression; but He by no means clears the guilty, visiting the iniquity of the fathers on the children to the third and fourth generation.’ Pardon the iniquity of this people, I pray, according to the greatness of Your mercy, just as You have forgiven this people, from Egypt even until now.”

Numbers 14:17-19

Moses appealed to what the surrounding nations already knew about the LORD. Egypt had seen His power, and others had heard that He remained visibly present with Israel. If the nation perished now, those watching could claim that He had been unable to bring His people into the land (Numbers 14:13-16). Moses did not offer Israel’s conduct as a reason for pardon. He relied on God’s own declaration of patience and abundant mercy, while acknowledging that the merciful God also judges guilt.

The LORD granted Moses’ request and spared the nation rather than destroying it and forming a new nation from Moses (Numbers 14:20-24). Nevertheless, the generation that had rejected His promise would bear the consequence of its rebellion. Israel would continue, but those rebels would not possess the land. Caleb had followed the LORD fully and would enter it; Joshua shared his faith and would enter as well.

The carcasses of you who have complained against Me shall fall in this wilderness, all of you who were numbered, according to your entire number, from twenty years old and above. Except for Caleb the son of Jephunneh and Joshua the son of Nun, you shall by no means enter the land which I swore I would make you dwell in. But your little ones, whom you said would be victims, I will bring in, and they shall know the land which you have despised. But as for you, your carcasses shall fall in this wilderness. And your sons shall be shepherds in the wilderness forty years, and bear the brunt of your infidelity, until your carcasses are consumed in the wilderness. According to the number of the days in which you spied out the land, forty days, for each day you shall bear your guilt one year, namely forty years, and you shall know My rejection.

Numbers 14:29-34

God directed the sentence at the complaining men numbered from twenty years old and upward, expressly excepting Caleb and Joshua. The census in view counted men eligible for military service. Levites were numbered separately, as Numbers 26:62 explains, so we should not broaden this sentence into a claim that every adult Israelite, regardless of that census, had to die before the crossing.

Nor does the age of twenty establish a universal age of accountability, below which no child can be morally answerable to God. It identifies the group involved in this particular judgment. Their children would endure the wandering and its hardships because of their parents’ rebellion, without becoming personally guilty of their parents’ sins. The adults had predicted that their children would become victims; God promised to bring those children into Canaan.

The sentence assigned a year for each of the forty days the spies had explored Canaan. This judgment determined the course of a journey already underway. Deuteronomy 2:14 records thirty-eight years between Kadesh Barnea and the crossing of the Zered Valley, during which the military generation died. That interval helps us understand the forty years as the whole wilderness period, including the earlier journey, rather than forty additional years beginning at Kadesh.

The ten spies who brought the evil report died by plague. The congregation mourned when Moses announced the sentence, but the action they chose next showed that regret had not made them willing to obey.

And Moses said, “Now why do you transgress the command of the LORD? For this will not succeed. Do not go up, lest you be defeated by your enemies, for the LORD is not among you. 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, the LORD will not be with you.” But they presumed to go up to the mountaintop. Nevertheless, neither the ark of the covenant of the LORD nor Moses departed from the camp. Then the Amalekites and the Canaanites who dwelt in that mountain came down and attacked them, and drove them back as far as Hormah.

Numbers 14:41-45

They admitted their sin and declared themselves ready to enter Canaan, but Moses warned that the LORD would not be with this expedition (Numbers 14:39-43). They went up despite his warning, while Moses and the ark remained in camp. The Amalekites and Canaanites attacked and drove them back toward Hormah.

They had refused to go when God commanded it, then insisted on going when He forbade it. Their new willingness to fight still left them resisting His word. Repentance would have meant accepting His verdict and obeying the instruction He was now giving. Pointing to an earlier command cannot make my action obedient if I disregard what God has since said.

God Disciplined and Sustained His People

Although God had sentenced that generation to die in the wilderness, He continued to guide and sustain the nation. He supplied food and water, kept their clothing from wearing out, and maintained His sanctuary among them. Near the end of the journey, Moses explained what the people were to learn from living under both His provision and His discipline.

And you shall remember that the LORD your God led you all the way these forty years in the wilderness, to humble you and test you, to know what was in your heart, whether you would keep His commandments or not. So He humbled you, allowed you to hunger, and fed you with manna which you did not know nor did your fathers know, that He might make you know that man shall not live by bread alone; but man lives by every word that proceeds from the mouth of the LORD. Your garments did not wear out on you, nor did your foot swell these forty years. You should know in your heart that as a man chastens his son, so the LORD your God chastens you.

Deuteronomy 8:2-5

God allowed Israel to experience hunger and then fed them with manna. Their need and His provision taught them that life depended on His word, not merely on whatever food they could secure for themselves. His testing also exposed whether they would obey Him. He was not discovering information He lacked; the people’s response revealed the condition of their hearts and taught them their need to depend on Him.

That dependence took practical form in the instructions for gathering manna. Ordinary leftovers could not be kept overnight against God’s command, but the double portion collected before the Sabbath was preserved for that day. Israel had to receive His provision as He directed, trusting that His word was reliable. Jesus later cited this passage when He refused Satan’s temptation to turn stones into bread.

Moses compared God’s discipline of Israel to a father’s correction of his son. Membership in that covenant nation, however, did not establish that each Israelite trusted Him. Many received the food and water while remaining unbelieving. Their experience warns us against treating participation in a community and its blessings as a substitute for personal faith.

I also need to respect the particular promises God made to Israel. The clothing, manna, and water He provided show His power and faithfulness; they do not guarantee every Christian uninterrupted health, food, or comfort. Faithful believers have suffered hunger, sickness, loss, and martyrdom. Blaming those hardships on weak faith, or promising that obedience will prevent them, goes beyond what these passages teach. We can depend on God through deprivation without claiming that He must reproduce every feature of Israel’s provision in our lives.

Earlier in those wilderness years, rebellion had also arisen among Israel’s recognized leaders. Korah, Dathan, and Abiram challenged Moses and Aaron, with On named in the initial group and 250 prominent men joining the challenge. They appealed to the congregation’s holiness while rejecting the particular responsibilities God had assigned. Moses rebuked Korah for seeking the priesthood. Dathan and Abiram accused Moses of making himself their ruler and failing to bring them into the promised land.

The earth opened beneath Dathan and Abiram, swallowing their households and possessions, and fire from the LORD consumed the 250 men offering incense. Numbers 26 includes Korah among those swallowed by the earth and expressly says his sons did not die. On is named at the beginning of the rebellion, but Scripture does not tell us what became of him.

The censers used to offer incense were hammered into a covering for the altar, warning others against approaching as priests without God’s appointment. Aaron’s rod then budded, confirming the LORD’s choice. The holiness of the congregation did not authorize Korah to take the priesthood for himself, and prominence among the people did not protect the rebels from judgment.

That accountability extended to Moses and Aaron. Near the end of the wilderness years, the congregation again needed water at Meribah. This was a different occasion from the earlier event when God had told Moses to strike the rock, and He now gave a different instruction.

And Moses and Aaron gathered the assembly together before the rock; and he said to them, “Hear now, you rebels! Must we bring water for you out of this rock?” Then Moses lifted his hand and struck the rock twice with his rod; and water came out abundantly, and the congregation and their animals drank. Then the LORD spoke to Moses and Aaron, “Because you did not believe Me, to hallow Me in the eyes of the children of Israel, therefore you shall not bring this assembly into the land which I have given them.”

Numbers 20:10-12

God told Moses to speak to the rock before the congregation (Numbers 20:7-9). Instead, Moses called the people rebels, asked whether he and Aaron must bring water out for them, and struck the rock twice. Water came abundantly for the people and their animals, but God’s generosity to them did not excuse what their leaders had done.

The LORD identified their failure as unbelief and a failure to honor Him as holy before Israel. We should therefore take the public misrepresentation of God as seriously as the act of striking the rock. Moses and Aaron would not bring the assembly into Canaan. Aaron later died on Mount Hor, and Moses would die in Moab; neither long service nor high office put them beyond God’s correction.

Later, on the journey around Edom, the people became discouraged and again spoke against God and Moses. They complained that they had been brought out to die and despised the food God had supplied.

Therefore the people came to Moses, and said, “We have sinned, for we have spoken against the LORD and against you; pray to the LORD that He take away the serpents from us.” So Moses prayed for the people. Then the LORD said to Moses, “Make a fiery serpent, and set it on a pole; and it shall be that everyone who is bitten, when he looks at it, shall live.” So Moses made a bronze serpent, and put it on a pole; and so it was, if a serpent had bitten anyone, when he looked at the bronze serpent, he lived.

Numbers 21:7-9

Many Israelites died from the serpents’ bites (Numbers 21:4-6). The people confessed their sin against the LORD and Moses and asked Moses to pray for them. In answer, God told him to make a bronze serpent and place it on a pole. A bitten person who looked at it lived. Healing came because God had promised it to those who responded to His instruction, not because bronze itself had healing power.

Centuries later, when Israelites burned incense to that object, Hezekiah destroyed it. They had turned a sign God had used into an object of worship. Jesus drew attention to its original purpose in John 3:14-15, connecting the serpent lifted in the wilderness with His own lifting up. A person facing death needed to trust the saving provision God gave. That comparison directs our faith to Christ without making Him morally equivalent to a serpent. The study on the bronze serpent develops the connection more fully.

Israel had fallen into idolatry long before Hezekiah’s day. Near the end of the wilderness years, the people took part in idolatry and sexual immorality at Baal of Peor, and a plague killed twenty-four thousand. Growing up during the wandering had not made the younger generation naturally righteous. They too needed to obey God.

After the plague, God ordered the new census recorded in Numbers 26. None of the military men numbered at Sinai remained among those now counted, except Caleb and Joshua. The sentence had been carried out, and the land would be assigned to the new households. God had judged the rebels while preserving the nation and His covenant purpose. Their children would enter because He kept His promise, not because a new generation was free from sin.

Moses, Joshua, and Entry Into the Land

Moses would not lead that crossing. Before his death, God allowed him to see the land from the heights above Moab. The closing account of his life brings together the promise God had kept and the consequence Moses still had to bear.

Then the LORD said to him, “This is the land of which I swore to give Abraham, Isaac, and Jacob, saying, ‘I will give it to your descendants.’ I have caused you to see it with your eyes, but you shall not cross over there.” So Moses the servant of the LORD died there in the land of Moab, according to the word of the LORD. And He buried him in a valley in the land of Moab, opposite Beth Peor; but no one knows his grave to this day. Moses was one hundred and twenty years old when he died. His eyes were not dim nor his natural vigor diminished.

Deuteronomy 34:4-7

At 120, Moses still had clear sight and undiminished strength. Frailty had not kept him out of Canaan; God had told him at Meribah that he would not bring the assembly in. From Pisgah he saw the land promised to Abraham, Isaac, and Jacob (Deuteronomy 34:1-4). He then died in Moab, where the LORD Himself buried him.

Israel mourned for thirty days before continuing under Joshua, who was filled with the spirit of wisdom (Deuteronomy 34:8-9). Scripture honors Moses’ unique prophetic ministry while recording his failure and its consequence. His sin did not erase his faithful service, but years of service did not make his public disobedience insignificant.

God charged Joshua to be strong, meditate on the Book of the Law, and obey what was written. At the Jordan, the ark went before Israel and God stopped the waters so the people could cross. The crossing recalled their deliverance at the sea, but now they were entering their inheritance. Memorial stones would help their children learn what the LORD had done.

After crossing, Israel renewed circumcision and kept the Passover. The manna ceased the day after the people ate the produce of Canaan. God was still providing for them, now through the land He had given rather than the daily miracle that had sustained them in the wilderness.

Possessing the land did not end every conflict or remove the possibility of disobedience. Jericho fell through God’s power, but Achan soon took goods devoted to God, which the people had been forbidden to keep for themselves. Obedience remained necessary throughout the conquest. Canaan was the actual inheritance God had promised Israel, and we should understand that promise before using it as a picture of Christian experience. It does not guarantee us a life without trouble.

Why the Wilderness Still Warns Us

Scripture itself tells us how to learn from these events. Psalm 95 calls worshipers to hear God’s voice “today” instead of hardening their hearts as at Meribah. A generation that had seen His works still went astray, and God swore they would not enter His rest (Psalm 95:7-11).

If I praise the great King while refusing to hear His word, my conduct contradicts my worship. Psalm 95 describes a heart hardened by continued resistance, rather than a person troubled by a fearful thought. Its call to hear God “Today” urges a response while He is speaking. An old failure need not drive me to despair of mercy, but His patience gives me no reason to persist in rebellion.

Paul also applied Israel’s experience directly to the church in Corinth, which included many Gentiles.

Now these things became our examples, to the intent that we should not lust after evil things as they also lusted. And do not become idolaters as were some of them. As it is written, “The people sat down to eat and drink, and rose up to play.” Nor let us commit sexual immorality, as some of them did, and in one day twenty-three thousand fell; nor let us tempt Christ, as some of them also tempted, and were destroyed by serpents; nor complain, as some of them also complained, and were destroyed by the destroyer. Now all these things happened to them as examples, and they were written for our admonition, upon whom the ends of the ages have come.

1 Corinthians 10:6-11

All those Israelites had shared the cloud, the sea, the food, and the water, yet most came under judgment (1 Corinthians 10:1-5). Paul identifies the spiritual Rock as Christ, showing that the eternal Son was already sustaining His people. The divine source of their provision explains Paul’s language; we do not need to imagine a geological boulder traveling behind the camp.

Being baptized into Moses described their common association with him through the sea and cloud. Sharing those privileges did not automatically make each Israelite a believer. Paul wants the Corinthians to learn from their example, so participation in church life and its blessings must not become an excuse to protect sin from correction.

The sins he names are specific: craving evil, idolatry, sexual immorality, testing Christ, and complaining as Israel did. His reference to the deaths at Peor also deserves careful reading. Numbers 25 gives the plague’s total as twenty-four thousand; Paul says twenty-three thousand fell “in one day.” I understand him to be counting a day’s deaths within the whole plague. That distinction respects the scope of each statement without inventing circumstances for the other deaths.

Paul applies Israel’s warning to Christians without making the church replace Israel or transferring Canaan’s boundaries to us. We must take seriously the sins for which Israel was judged. Confidence that I could never fall as they did would make me careless about the danger his warning is meant to expose (1 Corinthians 10:12).

Paul also assures the Corinthians that temptation is common to humanity and God faithfully provides a way to endure it (1 Corinthians 10:13). We need not surrender as though yielding were inevitable. We are to accept God’s help, remain watchful, and flee idolatry as Paul instructs. God’s faithfulness gives us reason to resist temptation instead of an excuse to approach it carelessly.

In Hebrews, Paul returns to Psalm 95 and calls professing believers to encourage one another against the hardening that sin produces.

Beware, brethren, lest there be in any of you an evil heart of unbelief in departing from the living God; but exhort one another daily, while it is called “Today,” lest any of you be hardened through the deceitfulness of sin. For we have become partakers of Christ if we hold the beginning of our confidence steadfast to the end, while it is said: “Today, if you will hear His voice, Do not harden your hearts as in the rebellion.”

Hebrews 3:12-15

Unbelief kept the wilderness generation out of the land (Hebrews 3:16-19). Paul urges those hearing God’s word now to encourage one another daily, before deceitful sin hardens into settled resistance. Disobedience can begin to look reasonable when its consequences seem remote. We need the help of other believers who will call us back to what God has said.

Hebrews 4 explains further that Israel’s entry into Canaan under Joshua did not exhaust God’s promise of rest. A rest still remains, and the gospel must be received in faith. Paul connects the two kinds of rest without making them identical. Exclusion from the land was a consequence in this life, so Moses’ death outside Canaan does not establish that he was eternally lost.

I do not understand this warning to teach that someone truly born again can become unborn. Settled unbelief can expose an empty profession of faith, and Paul’s exhortation calls everyone professing Christ to take sin seriously. Those genuinely born of God are indwelt and sealed by the Holy Spirit and remain eternally secure. Continuing in faith and obedience expresses the new life He has given; it neither earns salvation nor keeps us saved. That assurance gives no permission for a hardened life.

The Son who sustained Israel is also the Savior to whom the lifted serpent directs our faith. Jesus is eternal, fully God and fully man, born of a virgin and completely sinless. He alone is our Savior and Mediator, the One through whom we come to God.

Jesus willingly gave Himself to be slain as the perfect sacrifice for our sins, and His atonement rests on His perfection. Wicked men inflicted His bodily suffering and killed Him, but He offered Himself freely, shedding His innocent blood and dying for us. His saving sacrifice was complete before His burial and bodily resurrection. The Father did not punish, curse, abandon, strike, bruise, or pour wrath on His Son. The Father, Son, and Holy Spirit are distinct divine Persons who acted in unity for our salvation.

Because Christ died for the whole world, God’s offer of salvation is genuine for every person, though His grace can be resisted. Everyone who repents and believes in Jesus receives forgiveness and justification, God’s declaration that the believer is righteous before Him. That person is born again, indwelt and sealed by the Holy Spirit, and eternally secure in Christ. An empty profession does not establish that new birth, and the security of a genuine believer never authorizes lawlessness.

We should neither diagnose every hardship as punishment for a particular sin nor promise our own “Canaan” after a fixed period of difficulty. Scripture gives us no guarantee of health, wealth, or worldly success. Its applications are more searching: reject idolatry and sexual sin, remember former bondage honestly, and encourage one another to trust Christ while we hear His voice today.

My Final Thoughts

Israel’s forty years remind me how far unbelief can carry people who have witnessed God’s goodness. The generation that refused His promise died in the wilderness, while the children they feared for entered the land. God sustained the nation throughout those years without excusing its rebellion. I need to receive His correction with the same seriousness as His provision, and examine whether what I call faith actually submits to His word. Remembering Egypt honestly would have meant remembering why Israel needed deliverance. Accepting God’s verdict at Kadesh would have meant obeying Him when He told them to remain in the wilderness. Their experience calls me to listen when His word corrects the course I would prefer. The God who kept His promise to Israel has given His Son for our salvation; everyone who repents and believes in Him can trust His saving work.