Al Maidah, 26 Ayah
5:26
قَالَ فَإِنَّهَا مُحَرَّمَةٌ عَلَيۡهِمۡۛ أَرۡبَعِينَ سَنَةٗۛ يَتِيهُونَ فِي ٱلۡأَرۡضِۚ فَلَا تَأۡسَ عَلَى ٱلۡقَوۡمِ ٱلۡفَٰسِقِينَ ٢٦
Qāla Fa'innahā Muĥarramatun `Alayhim ۛ 'Arba`īna Sanatan ۛ Yatīhūna Fī Al-'Arđi ۚ Falā Ta'sa `Alá Al-Qawmi Al-Fāsiqīna
[ Allah ] 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."