Surah Al-Maaida

5:26

قَالَ فَإِنَّهَا مُحَرَّمَةٌ عَلَيْهِمْ ۛ أَرْبَعِينَ سَنَةًۭ ۛ يَتِيهُونَ فِى ٱلْأَرْضِ ۚ فَلَا تَأْسَ عَلَى ٱلْقَوْمِ ٱلْفَٰسِقِينَ

Allah berfirman: "Sesungguhnya negeri itu diharamkan kepada mereka memasukinya - selama empat puluh tahun, mereka akan merayau-rayau dengan bingungnya (di sepanjang masa yang tersebut) di padang pasir (Sinai); maka janganlah engkau berdukacita terhadap kaum yang fasik itu".

Tafsir 5:26

Allah said to His Prophet Moses (peace be upon him), ‘Allah has forbidden entry into the Holy Land for the Israelites for a period of forty years, in which they will wander on earth aimlessly without direction. Do not grieve, O Moses, over those who do not follow Allah, because the punishment they receive is because of their sins’.