Psalms 95:10

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.’

Hebrews 3:9

3:9There your fathers tested me and tried me, and they saw my works for forty years.

Hebrews 3:15-17

3:15 As it says,Oh, that today you would listen as he speaks! Do not harden your hearts as in the rebellion.” 3:16 For which ones heard and rebelled? Was it not all who came out of Egypt under Moses’ leadership? 3:17 And against whom was God provoked for forty years? Was it not those who sinned, whose dead bodies fell in the wilderness?