Joshua 5:6

5:6 Indeed, for forty years the Israelites traveled through the desert until all the men old enough to fight when they left Egypt, the ones who had disobeyed the Lord, died off. For the Lord had sworn a solemn oath to them that he would not let them see the land he had sworn on oath to give them, a land rich in milk and honey.

Numbers 14:33-34

14:33 and your children will wander in the wilderness forty years and suffer for your unfaithfulness, until your dead bodies lie finished in the wilderness. 14:34 According to the number of the days you have investigated this land, forty days – one day for a year – you will suffer for your iniquities, forty years, and you will know what it means to thwart me.

Nehemiah 9:12-21

9:12 You guided them with a pillar of cloud by day and with a pillar of fire by night to illumine for them the path they were to travel.

9:13 “You came down on Mount Sinai and spoke with them from heaven. You provided them with just judgments, true laws, and good statutes and commandments. 9:14 You made known to them your holy Sabbath; you issued commandments, statutes, and law to them through Moses your servant. 9:15 You provided bread from heaven for them in their time of hunger, and you brought forth water from the rock for them in their time of thirst. You told them to enter in order to possess the land that you had sworn to give them.

9:16 “But they – our ancestors – behaved presumptuously; they rebelled and did not obey your commandments. 9:17 They refused to obey and did not recall your miracles that you had performed among them. Instead, they rebelled and appointed a leader to return to their bondage in Egypt. But you are a God of forgiveness, merciful and compassionate, slow to get angry and unfailing in your loyal love. You did not abandon them, 9:18 even when they made a cast image of a calf for themselves and said, ‘This is your God who brought you up from Egypt,’ or when they committed atrocious blasphemies.

9:19 “Due to your great compassion you did not abandon them in the desert. The pillar of cloud did not stop guiding them in the path by day, nor did the pillar of fire stop illuminating for them by night the path on which they should travel. 9:20 You imparted your good Spirit to instruct them. You did not withhold your manna from their mouths; you provided water for their thirst. 9:21 For forty years you sustained them. Even in the desert they never lacked anything. Their clothes did not wear out and their feet did not swell.

Psalms 95:9-10

95:9 where your ancestors challenged my authority,

and tried my patience, even though they had seen my work.

95:10 For forty years I was continually disgusted with that generation,

and I said, ‘These people desire to go astray;

they do not obey my commands.’

Acts 13:17-18

13:17 The God of this people Israel chose our ancestors and made the people great during their stay as foreigners in the country of Egypt, and with uplifted arm he led them out of it. 13:18 For a period of about forty years he put up with them in the wilderness.

Hebrews 3:17

3:17 And against whom was God provoked for forty years? Was it not those who sinned, whose dead bodies fell in the wilderness?