Why did Bani Israel wander for 40 years? The answer is told in seven ayat of Surah al-Ma'idah (5:20-26). Not long after Allah saved the Children of Israel from Pharaoh, Prophet Musa (Moses, peace be upon him) told them to enter the land Allah had written for them. They were afraid of the people living there, they refused, and they spoke words to their prophet that the Quran records for every generation to read. The forty years of wandering, known in Arabic as al-tih, was Allah's answer.
People ask many questions about it. What was the Holy Land? Who were the "people of tyrannical strength"? Who were the two men who spoke up? Why forty years, and what happened during them? Did Musa die in the wilderness? This article answers each question from the Quran, explained with al-Tafsir al-Muyassar, Ibn Kathir, al-Tabari and al-Sa'di. Where the Quran and the tafsir are silent, we say so.
This article answers one question. For the whole life of Musa, from the river to the parting of the sea, read our complete story of Musa and Pharaoh.
The short answer: they refused Allah's command out of fear
The Children of Israel wandered for forty years because they refused to enter the Holy Land when Allah, through Musa, commanded them to. The decree comes right after their refusal and Musa's du'a:
﴿قَالَ فَإِنَّهَا مُحَرَّمَةٌ عَلَيْهِمْ ۛ أَرْبَعِينَ سَنَةً ۛ يَتِيهُونَ فِى ٱلْأَرْضِ ۚ فَلَا تَأْسَ عَلَى ٱلْقَوْمِ ٱلْفَـٰسِقِينَ ٢٦﴾(26) [Allāh] said, "Then indeed, it is forbidden to them for forty years [in which] they will wander throughout the land. So do not grieve over the defiantly disobedient people."
Al-Tafsir al-Muyassar explains that Allah told Musa the Holy Land was forbidden to them for forty years, during which they would wander in the land, lost and confused, and that Musa should not grieve over a people who had left obedience to Allah. Al-Sa'di calls it a worldly punishment, and adds that through it Allah may have expiated for them and turned away from them something greater.
So the wandering was not a random hardship. It was the direct result of one choice: when the door was open in front of them, they sat down.
How it began: a reminder of Allah's favours
The story begins with Musa reminding his people of everything Allah had given them:
﴿وَإِذْ قَالَ مُوسَىٰ لِقَوْمِهِۦ يَـٰقَوْمِ ٱذْكُرُوا۟ نِعْمَةَ ٱللَّهِ عَلَيْكُمْ إِذْ جَعَلَ فِيكُمْ أَنۢبِيَآءَ وَجَعَلَكُم مُّلُوكًا وَءَاتَىٰكُم مَّا لَمْ يُؤْتِ أَحَدًا مِّنَ ٱلْعَـٰلَمِينَ ٢٠﴾(20) And [mention, O Muḥammad], when Moses said to his people, "O my people, remember the favor of Allāh upon you when He appointed among you prophets and made you possessors and gave you that which He had not given anyone among the worlds.
Al-Muyassar explains that Allah had sent prophets among them, and made them "possessors" in the sense that they now owned their own affairs after having been owned by Pharaoh and his people. The ayah places this reminder immediately before the command that follows, so the people hear what Allah has already done for them before they are asked to act.
This matters for the question. They were not a people who had never seen Allah's help. They had watched the sea open for them and close over Pharaoh. The command to enter the land came to people who had every reason to trust.
What was the command? "Enter the blessed land"
Musa commanded them to enter the Holy Land and warned them against turning back:
﴿يَـٰقَوْمِ ٱدْخُلُوا۟ ٱلْأَرْضَ ٱلْمُقَدَّسَةَ ٱلَّتِى كَتَبَ ٱللَّهُ لَكُمْ وَلَا تَرْتَدُّوا۟ عَلَىٰٓ أَدْبَارِكُمْ فَتَنقَلِبُوا۟ خَـٰسِرِينَ ٢١﴾(21) O my people, enter the blessed land [i.e., Palestine] which Allāh has assigned to you and do not turn back [from fighting in Allāh's cause] and [thus] become losers."
Al-Muyassar explains that "holy" means purified, and that it is Bayt al-Maqdis and the land around it, which Allah had promised they would enter, fighting the disbelievers who were in it. Al-Sa'di gives the same meaning. Al-Tabari lists several opinions of the early scholars about its exact extent, and does not fix one. The Quran itself only calls it “the blessed land”
(Quran 5:21) that Allah had written for them.
The warning is part of the command: “do not turn back”
(Quran 5:21), or you will “become losers.”
(Quran 5:21) Al-Muyassar says they would lose the good of this world and the good of the Hereafter.
Why did they refuse? "A people of tyrannical strength"
They refused because they were afraid of the people who lived in the land:
﴿قَالُوا۟ يَـٰمُوسَىٰٓ إِنَّ فِيهَا قَوْمًا جَبَّارِينَ وَإِنَّا لَن نَّدْخُلَهَا حَتَّىٰ يَخْرُجُوا۟ مِنْهَا فَإِن يَخْرُجُوا۟ مِنْهَا فَإِنَّا دَٰخِلُونَ ٢٢﴾(22) They said, "O Moses, indeed within it is a people of tyrannical strength, and indeed, we will never enter it until they leave it; but if they leave it, then we will enter."
Al-Muyassar explains their words: there are strong, powerful people there whom we cannot fight, so we cannot enter while they are inside; if they leave, we will enter. Al-Sa'di describes those people as strong in might and courage.
The Quran does not describe these people beyond “a people of tyrannical strength”
(Quran 5:22), and it does not give their name, their number or their size. Many fantastic stories were later told about giants of enormous height. Ibn Kathir rejects them plainly: he says these reports are fabrications of the Children of Israel, and that some of them are lies too shameful to mention. We leave them out.
Their condition was revealing: "if they leave it, then we will enter." In other words, they wanted the land without any effort at all, handed to them empty.
The two men who feared Allah
Not everyone was afraid. Two men stood up and told the people to go in:
﴿قَالَ رَجُلَانِ مِنَ ٱلَّذِينَ يَخَافُونَ أَنْعَمَ ٱللَّهُ عَلَيْهِمَا ٱدْخُلُوا۟ عَلَيْهِمُ ٱلْبَابَ فَإِذَا دَخَلْتُمُوهُ فَإِنَّكُمْ غَـٰلِبُونَ ۚ وَعَلَى ٱللَّهِ فَتَوَكَّلُوٓا۟ إِن كُنتُم مُّؤْمِنِينَ ٢٣﴾(23) Said two men from those who feared [to disobey] upon whom Allāh had bestowed favor, "Enter upon them through the gate, for when you have entered it, you will be predominant. And upon Allāh rely, if you should be believers."
Al-Muyassar explains that these two men feared Allah, and Allah had blessed them with obedience to Him and to His prophet. They told the people to go through the gate of the city, taking the means, and promised them that once they did, they would win. Then they reminded them where victory really comes from: “And upon Allāh rely, if you should be believers.”
(Quran 5:23)
The Quran does not name the two men. Ibn Kathir and al-Tabari report that the early commentators named them Yusha' ibn Nun and Kalib ibn Yufunna; al-Sa'di does not name them, and the lesson does not depend on their names.
Their advice joins two things that are often wrongly separated: action (go in through the gate) and trust (rely on Allah). For more on this balance in the Quran stories, read our article on tawakkul in the stories of the prophets.
"Go, you and your Lord, and fight"
The people's final answer was the harshest thing they said in the whole episode:
﴿قَالُوا۟ يَـٰمُوسَىٰٓ إِنَّا لَن نَّدْخُلَهَآ أَبَدًا مَّا دَامُوا۟ فِيهَا ۖ فَٱذْهَبْ أَنتَ وَرَبُّكَ فَقَـٰتِلَآ إِنَّا هَـٰهُنَا قَـٰعِدُونَ ٢٤﴾(24) They said, "O Moses, indeed we will not enter it, ever, as long as they are within it; so go, you and your Lord, and fight. Indeed, we are remaining right here."
Al-Muyassar notes that this was their insistence on opposing Musa. They repeated their refusal, added "ever," and then spoke as if fighting were Musa's job and his Lord's job, not theirs: “so go, you and your Lord, and fight.”
(Quran 5:24) They would wait where they were.
These words became famous for exactly that reason. They are the opposite of what believers say. It is not that the people lacked strength; they lacked trust, and they lacked the willingness to stand with their prophet.
Musa's du'a: "I do not possess except myself and my brother"
Musa turned to his Lord:
﴿قَالَ رَبِّ إِنِّى لَآ أَمْلِكُ إِلَّا نَفْسِى وَأَخِى ۖ فَٱفْرُقْ بَيْنَنَا وَبَيْنَ ٱلْقَوْمِ ٱلْفَـٰسِقِينَ ٢٥﴾(25) [Moses] said, "My Lord, indeed I do not possess [i.e., control] except myself and my brother, so part us from the defiantly disobedient people."
Al-Muyassar explains: I have power only over myself and my brother, so judge between us and this disobedient people. Al-Sa'di reads the request the same way: judge between us and them, by sending on them what Your wisdom requires. Ibn Kathir explains "part us" as "separate" or "decide between us."
The words show Musa's position. He had done everything a messenger could do. The only people whose obedience he could answer for were himself and Harun, his brother.
Why forty years? What the tafsir say
The Quran gives the reason for the decree, their refusal, but does not explain why the number is forty. The tafsir speak about the wisdom of the period, and they do not all say the same thing:
- A punishment for disobedience. Al-Tabari and Ibn Kathir present the wandering above all as a punishment for refusing to fight when commanded and for disobeying their prophet.
- An expiation. Al-Sa'di says the worldly punishment may have been an expiation for them, turning away something greater.
- A new generation. Al-Sa'di also says that during this period most of those who had spoken these words would die, and a new generation would be raised that was ready to face the enemy and would not accept humiliation.
The grammar of the ayah has also been discussed. Al-Tabari prefers to read "forty years" with "forbidden": the land was forbidden to them for forty years, and afterwards those who remained and their children were allowed in. Ibn Kathir reports this view of al-Tabari, and mentions that other commentators read "forty years" with "they will wander," which would make the prohibition lasting for that generation. Either way, forty years of wandering is the plain meaning of the ayah.
What does "wandering" mean?
"Wandering" (yatihuna) means moving about lost, without finding the way. Al-Muyassar describes them as wandering in the land in confusion. Al-Sa'di says they wandered without finding a path and without settled rest. Al-Tabari reports from the early commentator Mujahid that they would travel all day and in the morning find themselves back where they had been the evening before.
The Quran does not name the place where they wandered, or describe its size or how many they were. Those are details we do not need.
What happened during the forty years?
Even while they wandered under a punishment, Allah kept providing for them. Al-Muyassar connects these ayat of Surah al-Baqarah directly to the time of the wandering:
﴿وَظَلَّلْنَا عَلَيْكُمُ ٱلْغَمَامَ وَأَنزَلْنَا عَلَيْكُمُ ٱلْمَنَّ وَٱلسَّلْوَىٰ ۖ كُلُوا۟ مِن طَيِّبَـٰتِ مَا رَزَقْنَـٰكُمْ ۖ وَمَا ظَلَمُونَا وَلَـٰكِن كَانُوٓا۟ أَنفُسَهُمْ يَظْلِمُونَ ٥٧﴾(57) And We shaded you with clouds and sent down to you manna and quails, [saying], "Eat from the good things with which We have provided you." And they wronged Us not - but they were [only] wronging themselves.
Al-Muyassar explains it as: remember Our favour on you when you were wandering in the land, when We made the clouds shade you from the heat of the sun and sent down manna and quails. The same favours appear in Surah al-A'raf, together with water from the rock:
﴿وَقَطَّعْنَـٰهُمُ ٱثْنَتَىْ عَشْرَةَ أَسْبَاطًا أُمَمًا ۚ وَأَوْحَيْنَآ إِلَىٰ مُوسَىٰٓ إِذِ ٱسْتَسْقَىٰهُ قَوْمُهُۥٓ أَنِ ٱضْرِب بِّعَصَاكَ ٱلْحَجَرَ ۖ فَٱنۢبَجَسَتْ مِنْهُ ٱثْنَتَا عَشْرَةَ عَيْنًا ۖ قَدْ عَلِمَ كُلُّ أُنَاسٍ مَّشْرَبَهُمْ ۚ وَظَلَّلْنَا عَلَيْهِمُ ٱلْغَمَـٰمَ وَأَنزَلْنَا عَلَيْهِمُ ٱلْمَنَّ وَٱلسَّلْوَىٰ ۖ كُلُوا۟ مِن طَيِّبَـٰتِ مَا رَزَقْنَـٰكُمْ ۚ وَمَا ظَلَمُونَا وَلَـٰكِن كَانُوٓا۟ أَنفُسَهُمْ يَظْلِمُونَ ١٦٠﴾(160) And We divided them into twelve descendant tribes [as distinct] nations. And We inspired to Moses when his people implored him for water, "Strike with your staff the stone," and there gushed forth from it twelve springs. Every people [i.e., tribe] knew its watering place. And We shaded them with clouds and sent down upon them manna and quails, [saying], "Eat from the good things with which We have provided you." And they wronged Us not, but they were [only] wronging themselves.
Ibn Kathir mentions the shading clouds, the manna and the quails, and the twelve springs from the stone, one for each tribe, among what happened in the wandering. Al-Tabari reports the same from the early commentators.
This is one of the most striking parts of the answer. The punishment was real, but Allah did not abandon them. They were fed, given water and shaded, every day, for forty years.
Did Musa die during the wandering?
The Quran does not say where or when Musa died, and the tafsir report different views. Ibn Kathir says Harun died first during the wandering, and Musa after him, and that Yusha' ibn Nun led the next generation into the land after Musa. Al-Tabari reports this view and others, and himself inclines to the view that Musa lived to lead them to the conquest, saying "Allah knows best." Al-Sa'di does not discuss it.
What the Quran does tell us is that Allah's promise was not cancelled. Elsewhere it says that the oppressed people were made to inherit the land Allah had blessed “because of what they had patiently endured.”
(Quran 7:137)
"Do not grieve over the defiantly disobedient people"
The ayah of the decree ends with words of comfort for Musa: “So do not grieve over the defiantly disobedient people.”
(Quran 5:26) Ibn Kathir explains it as a consolation: do not be sad for them, because what was decreed against them they deserved. Al-Sa'di says the same: their rebellion brought this on them, and Allah did not wrong them.
It is a lesson for every caller to good. When you have done your part and people refuse, their choice is not your failure.
The story step by step
| Stage | What happens | Ayat |
|---|---|---|
| The reminder | Musa reminds his people of prophets, freedom and favours | 5:20 |
| The command | Enter the Holy Land and do not turn back | 5:21 |
| The fear | "A people of tyrannical strength" are in it | 5:22 |
| The two men | Go in through the gate and rely on Allah | 5:23 |
| The refusal | "Go, you and your Lord, and fight" | 5:24 |
| Musa's du'a | "I do not possess except myself and my brother" | 5:25 |
| The decree | Forbidden for forty years, wandering in the land | 5:26 |
| The provision | Clouds, manna and quails, twelve springs | 2:57, 7:160 |
Lessons from the forty years
- Fear can cost more than the danger. They refused one battle out of fear, and lost forty years.
- Favours bring responsibility. Musa reminded them of Allah's gifts before the command, because gratitude shows itself in obedience.
- Action and trust belong together. The two men said "enter through the gate" and "rely on Allah" in one breath.
- A few can be right when the many are wrong. Two men spoke the truth against a whole people, and the Quran honours them.
- Leadership is not the follower's excuse. "Go, you and your Lord" pushed the duty onto others; the Quran calls those who said it disobedient.
- Allah's provision continues even in punishment. Clouds, manna and quails reached them throughout the wandering.
- A caller is responsible for his effort, not the result. Allah told Musa not to grieve over them.
- Change can take a generation. Al-Sa'di's explanation shows that some change comes only as a new generation grows up stronger.
How to explain it to children
For children, keep it simple: Allah saved the Children of Israel from a cruel king and promised them a home. When it was time to go in, most of them were scared and said no, even though Allah had already helped them so many times. Two brave men said, "Go in and trust Allah." Because the people refused, they spent forty years walking in the land before their children could go in, and even then Allah sent them food and water every day.
Ask: why do you think they were scared after everything they had seen? What did the two men say? What can we do when something good feels hard? Islamic stories for kids work best when children hear the real words of the Quran, so read 5:23 with them.
Read and watch the story of Musa in QASAS
The wandering comes after the crossing of the sea, and QASAS tells that crossing as a short cinematic story you can watch, or read page by page, with a quiz at the end. "Pharaoh's Last Words" follows the chase into the sea and its ending, and "Musa and the Magicians" shows the staff before Pharaoh's palace.
Watch this story in QASASPharaoh's Last WordsAt the moment of drowning he said: I believe.Open on Google Play →The app is a free prophet stories app with a full mushaf with tafsir (al-Muyassar and Ibn Kathir), so you can open Surah al-Ma'idah and read every ayah quoted here with its explanation. It also has prayer times, the qibla and a 3D tasbih, with no ads and no account.
Related questions
- Who was al-Samiri, the man who made the golden calf while Musa was away?
- Why did Musa ask to see Allah, and what happened to the mountain?
- Why was Pharaoh's repentance not accepted?
Frequently asked questions
Why did Bani Israel wander for 40 years?
Because they refused to enter the Holy Land when Musa commanded them. They said “go, you and your Lord, and fight. Indeed, we are remaining right here.”
(Quran 5:24) Allah then made the land forbidden to them for forty years, during which they wandered (5:26). Al-Muyassar describes them as wandering lost and confused.
Where is the story of the forty years in the Quran?
In Surah al-Ma'idah, ayat 20 to 26. The favours they received during the wandering, the clouds, manna and quails, are mentioned in Surah al-Baqarah 2:57 and Surah al-A'raf 7:160.
What is the Holy Land in Surah al-Ma'idah?
Al-Tafsir al-Muyassar and al-Sa'di say it is Bayt al-Maqdis and the land around it. "Holy" means purified. Al-Tabari reports several views of the early scholars on its exact extent.
Who were the two men in 5:23?
The Quran describes them only as two men who feared Allah and whom Allah had blessed. Ibn Kathir and al-Tabari report that the early commentators named them Yusha' ibn Nun and Kalib ibn Yufunna.
Were the people in the Holy Land giants?
The Quran only calls them “a people of tyrannical strength”
(Quran 5:22) Al-Sa'di describes them as strong in might and courage. Ibn Kathir rejects the stories of their huge size as fabrications of the Children of Israel.
What did they eat during the forty years?
Allah sent them manna and quails and shaded them with clouds (2:57), and twelve springs gushed from the rock when Musa struck it (7:160). Al-Muyassar explains that these favours came while they were wandering.
Did Musa die during the forty years?
The Quran does not say. Ibn Kathir says Harun and then Musa died during the wandering and Yusha' ibn Nun led the next generation in. Al-Tabari reports this and other views, and inclines to the view that Musa led them to the conquest.
Sources
The Quran: Surah al-Ma'idah 5:20-26; Surah al-Baqarah 2:57; Surah al-A'raf 7:137, 7:160. Tafsir: al-Tafsir al-Muyassar (King Fahd Complex), Tafsir Ibn Kathir, Tafsir al-Tabari (Jami' al-Bayan), Tafsir al-Sa'di (Taysir al-Karim al-Rahman), on the same ayat.
Updated: · By QASAS



